зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
d8abad75e4
Коммит
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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче