mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
Hopefully fix bug 302195: add null check on the nsIDOMWindow so that when showing a cookie for an image, we don't crash.
This commit is contained in:
parent
d8abad75e4
commit
f3dc0bc953
@ -137,6 +137,9 @@ const char kDirServiceContractID[] = "@mozilla.org/file/directory_service;1";
|
||||
|
||||
+ (CHBrowserView*)browserViewFromDOMWindow:(nsIDOMWindow*)inWindow
|
||||
{
|
||||
if (!inWindow)
|
||||
return nil;
|
||||
|
||||
// make sure we get the root window (e.g. for subframes in frameset)
|
||||
nsCOMPtr<nsIDOMWindow> topWindow;
|
||||
inWindow->GetTop(getter_AddRefs(topWindow));
|
||||
|
Loading…
x
Reference in New Issue
Block a user