[Webkit-unassigned] [Bug 18725] Make postMessage asynchronous

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Apr 26 09:30:33 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=18725





------- Comment #1 from hk9565 at gmail.com  2008-04-26 09:30 PDT -------
I have this implemented in my tree, but I'd like to write a bunch more tests. 
I can upload a patch once Bug 17331 lands (so I can made a diff easily).

I didn't use FrameView::scheduleEvent to schedule the event because we need to
do the access check for targetOrigin synchronously with dispatching the event
and we want the MessageEvent to bind to the DOMWindow during navigation (not to
its target, the document).  Instead, I used a design similar to
HTMLMediaElement::dispatchEventAsync, storing the pending MessageEvents in
DOMWindow.  This should work correctly with respect to frame navigation but
means MessageEvents will not respect FrameView::pauseScheduledEvents and
FrameView::resumeScheduledEvents.  Does this design sound reasonable?


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



More information about the webkit-unassigned mailing list