diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp index 13b5e73a24f3..ab0aa265ebcf 100644 --- a/dom/base/nsGlobalWindow.cpp +++ b/dom/base/nsGlobalWindow.cpp @@ -3739,7 +3739,7 @@ void nsPIDOMWindow::RefreshMediaElements() { nsRefPtr service = AudioChannelService::GetOrCreate(); - service->RefreshAgentsVolume(GetCurrentInnerWindow()); + service->RefreshAgentsVolume(GetOuterWindow()); } // nsISpeechSynthesisGetter