backing myself out, did not have approval.

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@203606 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sspitzer%mozilla.org
2006-07-25 01:49:27 +00:00
parent 3d9a4d6898
commit d35e5de056

View File

@@ -1346,8 +1346,16 @@
}
setTimeout(_delayedUpdate, 0, this.mTabContainer);
// We're committed to closing the tab now.
// Dispatch a notification.
// We dispatch it before any teardown so that event listeners can
// inspect the tab that's about to close.
var evt = document.createEvent("Events");
evt.initEvent("TabClose", true, false);
aTab.dispatchEvent(evt);
if (l == 1) {
// add a new blank tab to replace the one we're about to close
// add a new blank tab to replace the one being closed
// (this ensures that the remaining tab is as good as new)
this.addTab("about:blank");
l++;
@@ -1359,14 +1367,6 @@
this.setStripVisibilityTo(false);
}
// We're committed to closing the tab now.
// Dispatch a notification.
// We dispatch it before any teardown so that event listeners can
// inspect the tab that's about to close.
var evt = document.createEvent("Events");
evt.initEvent("TabClose", true, false);
aTab.dispatchEvent(evt);
var index = -1;
if (this.mCurrentTab == aTab)
index = this.mTabContainer.selectedIndex;