Back out bug 1154243 since mWindow is an nsIDOMWindow

Landed on a CLOSED TREE
This commit is contained in:
Ehsan Akhgari 2015-04-14 08:53:50 -04:00
parent 805924c431
commit ef487c9722

View File

@ -199,11 +199,12 @@ AudioChannelAgent::GetWindowVolume(float* aVolume)
{
NS_ENSURE_ARG_POINTER(aVolume);
if (!mWindow) {
nsCOMPtr<nsPIDOMWindow> win = do_QueryInterface(mWindow);
if (!win) {
*aVolume = 1.0f;
return NS_OK;
}
*aVolume = mWindow->GetAudioGlobalVolume();
*aVolume = win->GetAudioGlobalVolume();
return NS_OK;
}