зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1218396 - By default window-less AudioChannelAgents should be muted, r=alwu
This commit is contained in:
Родитель
d7e0a22d6a
Коммит
b15274a9bf
|
@ -323,13 +323,16 @@ AudioChannelService::GetState(nsPIDOMWindow* aWindow, uint32_t aAudioChannel,
|
|||
MOZ_ASSERT(aVolume && aMuted);
|
||||
MOZ_ASSERT(aAudioChannel < NUMBER_OF_AUDIO_CHANNELS);
|
||||
|
||||
*aVolume = 1.0;
|
||||
*aMuted = false;
|
||||
|
||||
if (!aWindow || !aWindow->IsOuterWindow()) {
|
||||
*aVolume = 0.0;
|
||||
*aMuted = true;
|
||||
return;
|
||||
}
|
||||
|
||||
*aVolume = 1.0;
|
||||
*aMuted = false;
|
||||
|
||||
AudioChannelWindow* winData = nullptr;
|
||||
nsCOMPtr<nsPIDOMWindow> window = aWindow;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче