Open Bug 1819154 Opened 2 years ago Updated 10 months ago

Make paused compositors respond to requestAnimationFrame at some cadence.

Categories

(Core :: Layout, defect, P3)

defect

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.

Is it really never-fired? Or is it fired at throttled-frame-rate? I'd expect the later but...

(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.

Component: DOM: Animation → Layout
No longer depends on: 1768495
See Also: → 1768495

The MozAfterPaint event may also not be fired when the compositor is paused.

Severity: -- → S3
Priority: -- → P3

"animationend" events are also not sent.

(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

https://searchfox.org/mozilla-central/rev/236aff736d092e69cdf9638a026be326ecec7e07/layout/base/nsRefreshDriver.cpp#2574

because we are waiting for a paint aka waiting for the compositor to notify us of a completed transaction.

See Also: → 1875100
You need to log in before you can comment on or make changes to this bug.