Bug 1216308 - Followup for incomplete fix. r=me

This commit is contained in:
Bobby Holley
2015-10-26 11:22:29 -07:00
parent ae34612cc9
commit 2fbc62d387

View File

@@ -2268,7 +2268,7 @@ HTMLMediaElement::PlayInternal(bool aCallerIsChrome)
}
if (Preferences::GetBool("media.block-play-until-visible", false) &&
!nsContentUtils::IsCallerChrome() &&
!aCallerIsChrome &&
OwnerDoc()->Hidden()) {
LOG(LogLevel::Debug, ("%p Blocked playback because owner hidden.", this));
mPlayBlockedBecauseHidden = true;