mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 684135 - Protect against calling this function during shutdown. r=bzbarsky
This commit is contained in:
parent
f4bde3676e
commit
d8de08f4ca
@ -542,6 +542,10 @@ public:
|
||||
}
|
||||
|
||||
static nsGlobalWindow* GetInnerWindowWithId(PRUint64 aInnerWindowID) {
|
||||
if (!sWindowsById) {
|
||||
return nsnull;
|
||||
}
|
||||
|
||||
nsGlobalWindow* innerWindow = sWindowsById->Get(aInnerWindowID);
|
||||
return innerWindow && innerWindow->IsInnerWindow() ? innerWindow : nsnull;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user