From 1bdb136de845878d5dfc2ec9f8d56710187a23e2 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Thu, 23 Aug 2007 19:03:08 +0000 Subject: [PATCH] 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 git-svn-id: svn://10.0.0.236/trunk@232956 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShell.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 626fc8cb7a5..a8d1ceb0a5e 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -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 catMan(do_GetService(NS_CATEGORYMANAGER_CONTRACTID)); if (!catMan)