Bug 154940 - PageThrottler should apply hysteresis to media activity
Summary: PageThrottler should apply hysteresis to media activity
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Website (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Gavin Barraclough
Depends on:
Reported: 2016-03-02 16:57 PST by Gavin Barraclough
Modified: 2016-03-03 12:41 PST (History)
4 users (show)

See Also:

Fix (5.17 KB, patch)
2016-03-02 17:02 PST, Gavin Barraclough
rniwa: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gavin Barraclough 2016-03-02 16:57:34 PST
Currently PageThrottler keeps a track of audible plugin activity and HTML media element activity separately. Audible plugin activity also gets an extra 5s hysteresis applied, so that after audio playback has completed there is a chance to queue up more audio before timer throttling kicks in. HTML audio does not get this grace. Funnel both together into a single activity flag, such that the hysteresis is applied to both.
Comment 1 Gavin Barraclough 2016-03-02 17:02:18 PST
Created attachment 272705 [details]
Comment 2 Gavin Barraclough 2016-03-02 17:19:49 PST
Transmitting file data ...
Committed revision 197480.