[Webkit-unassigned] [Bug 137496] Add a microtask abstraction

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Feb 15 14:49:32 PST 2015


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

--- Comment #17 from Yoav Weiss <yoav at yoav.ws> ---
Going back to this, I wonder what's the best way to avoid a global here.
If I understand correctly, we have a single event loop per renderer process. We want microtasks running on this event loop to be synchronized (e.g. pages from a similar origin must be on the same event loop, and therefore should have their microtasks running sequentially).

Looking around the code, it seems like the one-to-one relationship with Document goes all the way up to WebPage. IIUC, WebPages are then owned by WebKit2's WebProcess, which makes me think that WebProcess is the right place to maintain such an object that would represent EventLoop synchronization. Is that correct?
If so, all the WebPages owned by a single WebProcess share the same event loop, right?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150215/aea461a7/attachment-0002.html>


More information about the webkit-unassigned mailing list