Groups
Groups
Sign in
Groups
Groups
mozilla.dev.platform
Conversations
About
Send feedback
Help
Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Learn more
Intent to implement & ship: queueMicrotask
66 views
Skip to first unread message
smaug
unread,
May 24, 2019, 4:45:01 AM
5/24/19
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Summary: queueMicrotask exposes the platform primitive to queue microtasks. Without the API, web pages have used hacks around MutationObserver or Promise.
Bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1480236
Link to standard:
https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#microtask-queuing
Platform coverage: everywhere
Estimated or target release: 69
Preference behind which this will be implemented: without pref
Is this feature enabled by default in sandboxed iframes? yes
DevTools bug: NA
Do other browser engines implement this? Shipped in Blink and Webkit
web-platform-tests:
https://searchfox.org/mozilla-central/source/testing/web-platform/tests/html/webappapis/microtask-queuing
Is this feature restricted to secure contexts? No. This is just exposing the scheduling primitive of MutationObserver and Promise as an API.
Note to the users of the API (this applies to Promises and MutationObserver too). Microtasks are from UA point of view synchronous, so don't do heavy
operations in them, or schedule lots of them in a row - that might cause jank.
-Olli
0 new messages