зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1001383 - HTMLMediaElement::UpdateAudioChannelPlayingState() should use system principal because calling AudioChannel API, r=bz
This commit is contained in:
Родитель
2e43b0c9d2
Коммит
c15c9f6bc6
|
@ -3848,6 +3848,11 @@ void HTMLMediaElement::UpdateAudioChannelPlayingState()
|
||||||
mAudioChannelAgent->SetVisibilityState(!OwnerDoc()->Hidden());
|
mAudioChannelAgent->SetVisibilityState(!OwnerDoc()->Hidden());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This is needed to pass nsContentUtils::IsCallerChrome().
|
||||||
|
// AudioChannel API should not called from content but it can happen that
|
||||||
|
// this method has some content JS in its stack.
|
||||||
|
AutoNoJSAPI nojsapi;
|
||||||
|
|
||||||
if (mPlayingThroughTheAudioChannel) {
|
if (mPlayingThroughTheAudioChannel) {
|
||||||
int32_t canPlay;
|
int32_t canPlay;
|
||||||
mAudioChannelAgent->StartPlaying(&canPlay);
|
mAudioChannelAgent->StartPlaying(&canPlay);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче