Bug 1183301 - GetAllowedAudioChannels should not throw an exception if nsIFrameElement is not ready. r=baku

This commit is contained in:
Alastor Wu 2015-07-16 10:19:55 +08:00
parent 0c8e7b7e06
commit 2e0c92c43d

View File

@ -503,8 +503,7 @@ nsBrowserElement::GetAllowedAudioChannels(
// If empty, it means that this is the first call of this method.
if (mBrowserElementAudioChannels.IsEmpty()) {
nsCOMPtr<nsIFrameLoader> frameLoader = GetFrameLoader();
if (!frameLoader) {
aRv.Throw(NS_ERROR_FAILURE);
if (NS_WARN_IF(!frameLoader)) {
return;
}