зеркало из https://github.com/mozilla/pjs.git
Don't pass null nodes to methods that don't expect them. Bug 329745,
r=timeless, sr=bzbarsky
This commit is contained in:
Родитель
d6ee5b8dbb
Коммит
5a0560cddd
|
@ -272,6 +272,7 @@ nsContextMenuInfo::GetBackgroundImageRequest(nsIDOMNode *aDOMNode, imgIRequest *
|
|||
nsCOMPtr<nsIDOMHTMLElement> body;
|
||||
htmlDocument->GetBody(getter_AddRefs(body));
|
||||
domNode = do_QueryInterface(body);
|
||||
NS_ENSURE_TRUE(domNode, NS_ERROR_FAILURE);
|
||||
}
|
||||
}
|
||||
return GetBackgroundImageRequestInternal(domNode, aRequest);
|
||||
|
|
Загрузка…
Ссылка в новой задаче