Closed Bug 736578 Opened 13 years ago Closed 13 years ago

Provide a preference to control the frequency at which we clamp timers in inactive tabs

Categories

(Core :: DOM: Core & HTML, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mfinkle, Unassigned)

Details

Bug 633421 clamped timers at 1hz. This appears to be fine for desktop, but on mobile there has been concern about killing battery life (see bug 735246). Could we get a preference exposed so we could adjust the value? We'd also want a "suspend" value as well. To be clear, this setting would be used anytime a tab becomes inactive, whether that happens while Firefox is in the foreground or in the background.
> Could we get a preference exposed so we could adjust the value? You mean like the "dom.min_background_timeout_value" preference bug 633421 added? ;) There is no "suspend" value, but you could just set the clamp to 31536000000 (that would be 365 days), for pretty much the same effect.
(In reply to Boris Zbarsky (:bz) from comment #1) > > Could we get a preference exposed so we could adjust the value? > > You mean like the "dom.min_background_timeout_value" preference bug 633421 > added? ;) \o/ > There is no "suspend" value, but you could just set the clamp to 31536000000 > (that would be 365 days), for pretty much the same effect. Something like that should be fine. Thanks. Closing as WFM. I'll open a Fennec bug to pick a good clamp value.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.