a tab with an alert open and lots of pending microtasks may slow down other tabs using the same process
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
People
(Reporter: smaug, Assigned: smaug)
References
Details
(Whiteboard: fission-soft-blocker)
Attachments
(1 file)
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
RyanVM
:
approval-mozilla-esr91+
|
Details | Review |
Testcase http://mozilla.pettay.fi/moztests/suppressed_microtasks.html
But this has happened to people with real web sites, for example Google calendar.
Comment 1•3 years ago
|
||
For example - bad jank trying to type into a gmail tab while in a WebRTC call:
https://share.firefox.dev/2VsoJDN
Assignee | ||
Comment 2•3 years ago
|
||
Looks like Fission changes have regressed the behavior making this way more worse than I thought. See bug 1724899.
Assignee | ||
Comment 3•3 years ago
|
||
The test is in theory racy, but trying to limit the cases when it might behave badly
by running it on opt desktop builds only. Without the patch the 'period' check takes over 400ms locally and with the
patch 1-3ms.
The changes are just trying to optimize execution, not change the behavior.
Use of SuppressedMicroTasks is perhaps a bit odd, but it helps keeping
SavedMicroTaskQueue simple.
Updated•3 years ago
|
Comment 4•3 years ago
|
||
Tentatively tracking this bug as a soft blocker for Fission MVP. Olli said we might want to uplift the fix to Beta.
Comment 6•3 years ago
|
||
bugherder |
Comment 7•3 years ago
|
||
Olli says we should uplift this fix (and bug 1724899) to Beta 92 and ESR 91 because this bug can cause performance problems with Google Docs and Calendar.
Assignee | ||
Comment 8•3 years ago
|
||
Comment on attachment 9235694 [details]
Bug 1724777, optimize suppressed MicroTask handling, r=mccr8
Beta/Release Uplift Approval Request
- User impact if declined: Slower performance (seen at least on some google websites)
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: Bug 1724899
- Risk to taking this patch: Medium
- Why is the change risky/not risky? (and alternatives if risky): The patch should not change the behavior, but obviously it isn't super trivial
- String changes made/needed: NA
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration:
- User impact if declined:
- Fix Landed on Version:
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky):
- String or UUID changes made by this patch:
Comment 9•3 years ago
|
||
Comment on attachment 9235694 [details]
Bug 1724777, optimize suppressed MicroTask handling, r=mccr8
Approved for 92.0b5. We'll revisit the ESR request when this has baked a bit more.
Comment 10•3 years ago
|
||
bugherder uplift |
Comment 11•3 years ago
|
||
Comment on attachment 9235694 [details]
Bug 1724777, optimize suppressed MicroTask handling, r=mccr8
Approved for 91.1esr.
Comment 12•3 years ago
|
||
bugherder uplift |
Updated•3 years ago
|
Updated•3 years ago
|
Description
•