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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 29 20:46:30 PDT 2008


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





------- Comment #6 from hk9565 at gmail.com  2008-04-29 20:46 PDT -------
> Ok.  I'll figure out a way to integrate the events with the main event queue
> in FrameView.

Hum...  Upon further investigation, it looks like the event queue in FrameView
is something specially for delaying events during layout and uses the same
event "clustering" pattern.  In fact, there are a number of other examples of
this event clustering pattern in our codebase.  For example,
Document::dispatchImageLoadEventSoon uses the same pattern.

One option is create an TaskQueue class that knows how to queue up "Tasks"
using timers and run them in the proper order with respect to the main event
loop.  Based on my current understanding, this would require creating one Timer
object for each Task.

I'm inclined to keep the current implementation, but I can code up the
TaskQueue approach if you'd like to see what that might look like.


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