[Webkit-unassigned] [Bug 55662] New: Web Worker 'onmessage' event doesn't fire if "function onmessage(...) { }" is defined

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 3 04:37:56 PST 2011


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

           Summary: Web Worker 'onmessage' event doesn't fire if "function
                    onmessage(...) { }" is defined
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://jonathanleighton.com/tests/onmessage/
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebCore JavaScript
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: j at jonathanleighton.com


Hi there,

If a Web Worker defines its onmessage handler like so:

function onmessage(event) {
  ...
}

It will not fire.

However, if it defines:

onmessage = function(event) {
  ...
}

Both types work in Gecko.

A demo is here: http://jonathanleighton.com/tests/onmessage/. In Gecko I see:

on message function got message: zomg
on message attribute got message: zomg

In WebKit I see:

on message attribute got message: zomg

Thanks,
Jon

-- 
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