[Webkit-unassigned] [Bug 29801] addEventListener of MessagePort should also call start(), like onmessage

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 28 10:44:37 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29801





--- Comment #4 from Zoltan Herczeg <zherczeg at inf.u-szeged.hu>  2009-09-28 10:44:37 PDT ---
(In reply to comment #3)
> Also, please explain why this should be so. I don't think the spec says that.

See the SharedWorker example here:
http://www.whatwg.org/specs/web-workers/current-work/

See the code example after "The viewer is more involved:"

worker.port.addEventListener('message', configure, false);

is used instead of

worker.port.onmessage = configure

Moreover, more addEventListener (4, exactly) is applied for one worker object
(actually I didn't tested that, yet)

You think the example is wrong?

How can I make regression test for Shared Workers?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list