mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
Make sure to not think we're in the middle of firing unload just because we created an about:blank content viewer. Bug 388579, r=biesi, sr=jst
This commit is contained in:
parent
bf9b91303a
commit
e5d97611d6
@ -5037,6 +5037,12 @@ nsDocShell::CreateAboutBlankContentViewer(nsIPrincipal* aPrincipal)
|
||||
(void) FirePageHideNotification(!mSavingOldViewer);
|
||||
}
|
||||
|
||||
// Now make sure we don't think we're in the middle of firing unload after
|
||||
// this point. This will make us fire unload when the about:blank document
|
||||
// unloads... but that's ok, more or less. Would be nice if it fired load
|
||||
// too, of course.
|
||||
mFiredUnloadEvent = PR_FALSE;
|
||||
|
||||
// one helper factory, please
|
||||
nsCOMPtr<nsICategoryManager> catMan(do_GetService(NS_CATEGORYMANAGER_CONTRACTID));
|
||||
if (!catMan)
|
||||
|
Loading…
x
Reference in New Issue
Block a user