Closed Bug 1108483 Opened 10 years ago Closed 9 years ago

Pause or throttle SWF content that is off screen or in background tabs

Categories

(Firefox Graveyard :: Shumway, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: cpeterson, Unassigned)

References

(Depends on 1 open bug)

Details

(Whiteboard: [shumway:fb2?])

Pause or throttling unseen SWF content would improve Firefox responsiveness and reduce power usage. SWF content that is playing audio may need to be exempt so users can continue listening to audio from unseen SWF content.
Summary: Pause or throttle SWF content that is or in background tabs → Pause or throttle SWF content that is off screen or in background tabs
We should probably talk to whoever implemented the throttling heuristics for JS that we've had in Firefox for quite a while now. Perhaps we can even simply use them somehow. I don't, however, know who worked on this.
bz says: Gecko's throttling policies are as follows: 1) Nested setTimeout/setInterval is throttled to a rate determined by the "dom.min_background_timeout_value", defaulting to 1000ms wait time between invocations of the repeating timer. 2) The refresh driver (and hence requestAnimationFrame) is throttled to 1Hz initially, period-doubling every time it fires, more or less. The policy is a bit more complicated, since different tabs can actually affect each other. Note that we don't do any throttling for JS right now in the "scrolled off screen" case.
It sounds like we just need to get throttling working for OOP iframes and should be pretty much set. We might want to at least look into throttling things that are outside the viewable area of a page, though. While that wouldn't immediately help with responsiveness of web content (because Shumway won't block it anyway), it'll leave us with more resources for the Flash content that's actually visible.
Depends on: 1110035
Blocks: shumway-m4
Make bugs with "[shumway-fb2]" whiteboard tag block shumway-fb2 meta bug 1110300.
Blocks: shumway-fb2
No longer blocks: shumway-fb2
Blocks: shumway-m5
No longer blocks: shumway-m4
Product: Firefox → Firefox Graveyard
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.