Bug 1185303 - HTMLMediaElement should not be paused when visibility changed and when muted by the AudioChannel policy, r=ehsan

This commit is contained in:
Andrea Marchesini
2015-07-22 00:04:57 +01:00
parent deced47b4d
commit b59307d06e
2 changed files with 35 additions and 1 deletions

View File

@@ -4013,7 +4013,10 @@ HTMLMediaElement::NotifyOwnerDocumentActivityChangedInternal()
mDecoder->NotifyOwnerActivityChanged();
}
bool pauseElement = !IsActive() || ComputedMuted();
bool pauseElement = !IsActive();
#ifdef MOZ_B2G
pauseElement |= ComputedMuted();
#endif
SuspendOrResumeElement(pauseElement, !IsActive());