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)
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.
![]() |
||
Comment 1•13 years ago
|
||
> 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.
Reporter | ||
Comment 2•13 years ago
|
||
(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.
Reporter | ||
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Reporter | ||
Comment 3•13 years ago
|
||
filed bug 736602
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•