mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 03:35:33 +00:00
Bug 1213154 - tab-sound-icon should be supported by bfcache, r=roc
--HG-- extra : rebase_source : c75b227254aa5701eb728afef09a803e2698e600
This commit is contained in:
parent
33c7b312ef
commit
bc1b4affc1
@ -4727,6 +4727,12 @@ HTMLMediaElement::IsPlayingThroughTheAudioChannel() const
|
||||
return false;
|
||||
}
|
||||
|
||||
// We should consider any bfcached page or inactive document/channel as
|
||||
// non-playing.
|
||||
if (mPausedForInactiveDocumentOrChannel) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// A loop always is playing
|
||||
if (HasAttr(kNameSpaceID_None, nsGkAtoms::loop)) {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user