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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 30 14:53:13 PST 2014


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

--- Comment #14 from Sam Weinig <sam at webkit.org> ---
(In reply to comment #13)
> Thanks for the review! :)
> 
> > Microtasks are defined as being per Event Loop 
> > (https://html.spec.whatwg.org/multipage/webappapis.html#event-loops), which is
> > not quite the same as per-document.  I believe this would be observable, as
> > microtasks in multiple documents would be run out of phase.
> 
> What would be a better place from which to call runMicroTasks so that the
> microtasks of different documents would be in sync?

It would either need to be global (which I would rather it not be) or on a new object that is shared between Documents that need to be synchronized. As the spec says, the documents that need to be synchronized are the ones that need to share an Event Loop of which, "There must be at least one browsing context event loop per user agent, and at most one per unit of related similar-origin browsing contexts".

-- 
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/20141130/40cdb4b9/attachment-0002.html>


More information about the webkit-unassigned mailing list