Make paused compositors respond to requestAnimationFrame at some cadence.
Categories
(Core :: Layout, defect, P3)
Tracking
()
People
(Reporter: bradwerth, Unassigned)
References
Details
Currently, if the compositor is paused, web content calling requestAnimationFrame
will never receive a callback. Bug 1768495 makes this issue more likely because the compositor will be paused in fully-occluded windows. Because web content may rely upon RAF firing eventually we should make RAF wake-up the compositor at some cadence.
Comment 1•2 years ago
|
||
Is it really never-fired? Or is it fired at throttled-frame-rate? I'd expect the later but...
Reporter | ||
Comment 2•2 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #1)
Is it really never-fired? Or is it fired at throttled-frame-rate? I'd expect the later but...
I think never fired. The failure in Bug 1768495 on test 1478035.html showed no callback from requestAnimationFrame for 3.5 minutes before the test timed out.
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Comment 3•2 years ago
|
||
The MozAfterPaint
event may also not be fired when the compositor is paused.
Updated•2 years ago
|
Reporter | ||
Comment 4•2 years ago
|
||
"animationend" events are also not sent.
Comment 5•1 year ago
|
||
(In reply to Brad Werth [:bradwerth] from comment #2)
(In reply to Emilio Cobos Álvarez (:emilio) from comment #1)
Is it really never-fired? Or is it fired at throttled-frame-rate? I'd expect the later but...
I think never fired. The failure in Bug 1768495 on test 1478035.html showed no callback from requestAnimationFrame for 3.5 minutes before the test timed out.
The tick happens, but we will just keep hitting this early return
because we are waiting for a paint aka waiting for the compositor to notify us of a completed transaction.
Description
•