Bug 684135 - Protect against calling this function during shutdown. r=bzbarsky

This commit is contained in:
Blake Kaplan 2011-09-02 16:49:08 -07:00
parent f4bde3676e
commit d8de08f4ca

View File

@ -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;
}