Summary: | Storing a reference to WorkerContext.postMessage() and calling it later yields a TypeError | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Andrew Wilson <atwilson> | ||||||
Component: | WebCore JavaScript | Assignee: | Dmitry Titov <dimich> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | ap, dimich, sam | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | PC | ||||||||
OS: | OS X 10.5 | ||||||||
Bug Depends on: | 27420 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
Andrew Wilson
2009-07-18 17:51:47 PDT
The test case works in Chromium, so it's somewhere in the JSC bindings. On a related note, the following line of code from Worker Context results in a TypeError also: postMessage.call(null, "foobar"); Created attachment 33094 [details]
test case
test case that shows this problem (passes on FF/Chrome, fails on Safari 4)
Created attachment 33209 [details]
proposed patch
This is dependent on 27420 as it relies on the IsWorkerContext attribute added in that patch.
Comment on attachment 33209 [details]
proposed patch
Awesome. Thanks for the patch.
assingning to me for landing |