Bug 1185303 - HTMLMediaElement should not be paused when visibility changed and when muted by the AudioChannel policy, r=ehsan
This commit is contained in:
@@ -4013,7 +4013,10 @@ HTMLMediaElement::NotifyOwnerDocumentActivityChangedInternal()
|
||||
mDecoder->NotifyOwnerActivityChanged();
|
||||
}
|
||||
|
||||
bool pauseElement = !IsActive() || ComputedMuted();
|
||||
bool pauseElement = !IsActive();
|
||||
#ifdef MOZ_B2G
|
||||
pauseElement |= ComputedMuted();
|
||||
#endif
|
||||
|
||||
SuspendOrResumeElement(pauseElement, !IsActive());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user