mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Don't pass null nodes to methods that don't expect them. Bug 329745,
r=timeless, sr=bzbarsky
This commit is contained in:
parent
4336a5d2a5
commit
016ec858e3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user