Bug 355291: Recently Closed Tabs > Open All In Tabs throws exceptions when Always Display Tab Bar is enabled, patch by Simon Bünzli <zeniko@gmail.com>, r=mano

git-svn-id: svn://10.0.0.236/trunk@213595 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gavin%gavinsharp.com 2006-10-13 15:08:09 +00:00
parent 578acc6ef4
commit 1c12c415a2

View File

@ -6849,7 +6849,8 @@ function undoCloseTab(aIndex) {
!gPrefService.getBoolPref("browser.tabs.autoHide") &&
tabbrowser.selectedBrowser.sessionHistory.count < 2 &&
tabbrowser.selectedBrowser.currentURI.spec == "about:blank" &&
!tabbrowser.selectedBrowser.contentDocument.body.hasChildNodes())
!tabbrowser.selectedBrowser.contentDocument.body.hasChildNodes() &&
!tabbrowser.selectedTab.hasAttribute("busy"))
blankTabToRemove = tabbrowser.selectedTab;
var ss = Cc["@mozilla.org/browser/sessionstore;1"].