On Wed, 11 Nov 2009 16:05:53 +0100, Simon Pieters <[email protected]> wrote:

Shouldn't setting onmessage on a Worker object enable the port message queue?

Currently step 8 of the "run a worker" algorithm enables the port message queue for the WorkerGlobalObjectScope side, but it is never enabled when going in the other direction, if I'm reading the spec correctly.

Hmm. Actually, step 12 and 13 of the Worker constructor enable the port message queue for both the inside and outside ports. Why does the "run a worker" algorithm enable one of them again? Isn't it too early to enable the port message queues before the worker has run and set 'onmessage'?

--
Simon Pieters
Opera Software

Reply via email to