Closed Bug 1382254 Opened 7 years ago Closed 7 years ago

Ordinary background throttling should be more aggressive

Categories

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

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: farre, Assigned: farre)

Details

Attachments

(1 file)

      No description provided.
Bug 1362322 added means to avoid throttling background tabs on a bunch of conditions. This turns out to be too aggressive to use for all background throttling. Bug 1378124 does it the right way in that it only does it for when we actually want to consider budget throttling. Also, the fallback should be to behave as ordinary throttling when budget throttling isn't allowed.
Ehsan, this does what we talked about yesterday. Re-instate the more aggressive throttling for ordinary background throttling (the one every second throttling).

It disallows budget throttling for:
IndexedDB, WebSockets, GetUserMedia, Audio.
Assignee: nobody → afarre
Flags: needinfo?(ehsan)
Attachment #8888347 - Flags: review?(ehsan)
Flags: needinfo?(ehsan)
Attachment #8888347 - Flags: review?(ehsan) → review+
Why IndexedDB?  Should we exempt other storage users?
Pushed by afarre@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/7ca61520bf6d
Only disallow budget throttling. r=ehsan
(In reply to Ben Kelly [:bkelly] from comment #3)
> Why IndexedDB?  Should we exempt other storage users?

It's for when there are ongoing transactions only, and it's to have the same behaviour as Chrome.
https://hg.mozilla.org/mozilla-central/rev/7ca61520bf6d
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.