Bug 623447 - ASSERTION: AreDialogsBlocked() called without a top window, r=jst a=jonas
authorNochum Sossonko <highmind63@gmail.com>
Thu, 06 Jan 2011 21:07:35 -0500
changeset 60097 5a420472acf62ba8a1c10cfc580c1bf214566d2d
parent 60096 1dd0835e349b3aef55ed6d1dda227d21e514e676
child 60098 3f18931661f974df4a8998e249e5005352b48360
push id17860
push userhighmind63@gmail.com
push dateFri, 07 Jan 2011 02:30:30 +0000
treeherdermozilla-central@5a420472acf6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjst, jonas
bugs623447
milestone2.0b9pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 623447 - ASSERTION: AreDialogsBlocked() called without a top window, r=jst a=jonas
dom/base/nsGlobalWindow.cpp
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -2549,17 +2549,17 @@ nsGlobalWindow::DialogOpenAttempted()
   return false;
 }
 
 bool
 nsGlobalWindow::AreDialogsBlocked()
 {
   nsGlobalWindow *topWindow = GetTop();
   if (!topWindow) {
-    NS_ERROR("AreDialogsBlocked() called without a top window?");
+    NS_ASSERTION(!mDocShell, "AreDialogsBlocked() called without a top window?");
 
     return true;
   }
 
   topWindow = topWindow->GetCurrentInnerWindowInternal();
 
   return !topWindow ||
          (topWindow->mDialogDisabled &&