Bug 1213154 - tab-sound-icon should be supported by bfcache, r=roc

--HG--
extra : rebase_source : c75b227254aa5701eb728afef09a803e2698e600
This commit is contained in:
Andrea Marchesini 2015-10-15 05:00:00 +02:00
parent 33c7b312ef
commit bc1b4affc1

View File

@ -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;