[Webkit-unassigned] [Bug 27419] New: Storing a reference to WorkerContext.postMessage() and calling it later yields a TypeError

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jul 18 17:51:47 PDT 2009


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

           Summary: Storing a reference to WorkerContext.postMessage() and
                    calling it later yields a TypeError
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore JavaScript
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: atwilson at google.com


There are a number of functions defined at global scope in WorkerContext - for
example, setTimeout() and postMessage() are both defined in the worker global
context.

It's perfectly valid for worker code to do this:

postMessage("hello");

However, if the worker code does this instead, it gets a TypeError:

var saved = postMessage;
saved("hello");

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