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:
JW Wang 2017-01-16 16:41:43 +08:00
parent 76d341d8fc
commit 740cebbff8

View File

@ -820,6 +820,11 @@ private:
return;
}
if (mMaster->mMinimizePreroll) {
SetState<DormantState>();
return;
}
auto timeout = MediaPrefs::DormantOnPauseTimeout();
if (timeout < 0) {
// Disabled when timeout is negative.