mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
Bug 1331329. Part 2 - enter dormant immediately when mMinimizePreroll is true. r=kaku
MozReview-Commit-ID: 8qWYRgm8lwj --HG-- extra : rebase_source : bfa1f5877bd56e816e0c43b849399051a8b1c142 extra : source : 57cb006d0759beb56e50dd23ebf8733de6a1a081
This commit is contained in:
parent
76d341d8fc
commit
740cebbff8
@ -820,6 +820,11 @@ private:
|
||||
return;
|
||||
}
|
||||
|
||||
if (mMaster->mMinimizePreroll) {
|
||||
SetState<DormantState>();
|
||||
return;
|
||||
}
|
||||
|
||||
auto timeout = MediaPrefs::DormantOnPauseTimeout();
|
||||
if (timeout < 0) {
|
||||
// Disabled when timeout is negative.
|
||||
|
Loading…
Reference in New Issue
Block a user