mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-11 22:41:02 +00:00
Bug 1375235 - Don't create the AudioChannelWindow unnecessarily when checking for audio activity in the window. r=padenot
--HG-- extra : source : af66c0b948814ad0283c57533861d8c63cb14352
This commit is contained in:
parent
cdd9ee8a97
commit
4dd00f9b49
@ -634,7 +634,12 @@ AudioChannelService::IsWindowActive(nsPIDOMWindowOuter* aWindow)
|
||||
if (!window) {
|
||||
return false;
|
||||
}
|
||||
AudioChannelWindow* winData = GetOrCreateWindowData(window);
|
||||
|
||||
AudioChannelWindow* winData = GetWindowData(window->WindowID());
|
||||
if (!winData) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return !winData->mAudibleAgents.IsEmpty();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user