Bug 589659 - Revert to an earlier version of the isBrowserEmpty test, one which actually works. r=Neil, f=KaiRo, f=Aqualon
authorJustin Wood <Callek@gmail.com>
Mon, 06 Sep 2010 20:56:23 -0400
changeset 6332 1d94b3afbf36d19c23cbe87679943eea84315478
parent 6331 cb0299a5d18703ec8601cf5a50b19cb0ba400479
child 6333 c8b0e716441eac2e2dc736391522526b64d8f353
push idunknown
push userunknown
push dateunknown
reviewersNeil
bugs589659
Bug 589659 - Revert to an earlier version of the isBrowserEmpty test, one which actually works. r=Neil, f=KaiRo, f=Aqualon
suite/common/utilityOverlay.js
--- a/suite/common/utilityOverlay.js
+++ b/suite/common/utilityOverlay.js
@@ -1393,18 +1393,17 @@ function switchToTabHavingURI(aURI, aOpe
 
   return false;
 }
 
 // Determines if a browser is "empty"
 function isBrowserEmpty(aBrowser) {
   return aBrowser.sessionHistory.count < 2 &&
          aBrowser.currentURI.spec == "about:blank" &&
-         !aBrowser.contentDocument.body.hasChildNodes() &&
-         !aBrowser.webProgress.isLoadingDocument;
+         !aBrowser.contentDocument.body.hasChildNodes();
 }
 
 function subscribeToFeed(href, event) {
   // Just load the feed in the content area to either subscribe or show the
   // preview UI
   var w = getTopWin();
   var charset;
   if (w) {