HTML 5's postMessage was just changed to dispatch its event to Window instead of Document. <http://html5.org/tools/web-apps-tracker?from=1490&to=1491> contains the actual change to the spec. We should update our implementation to match the spec.
This can probably happen either before or after Bug 18725, but the patches are likely to touch some of the same lines of code.
Created attachment 20997 [details]
Work in progress
Here is a work-in-progress patch. I really need to get a Mac so I can run the LayoutTests.
Created attachment 21010 [details]
I ran the tests and they pass. I added a comment to cross-domain-message-event-dispatch.html explaining why postMessage events are faster than setTimeout handlers.
Comment on attachment 21010 [details]
I realize this is just being moved, but the & is in the wrong place.
+void EventTargetNode::dispatchWindowEvent(const AtomicString &eventType, bool canBubbleArg, bool cancelableArg)
r=me. (Anders gave his approval too!)
Fix landed in r33006? Does this mean we are up to date with the postMessage spec?
(In reply to comment #5)
> Fix landed in r33006?
Can you not remember? Here's a hint: <http://trac.webkit.org/changeset/33006>