diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index 0b79687b419..4505ea77246 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -3811,49 +3811,34 @@ - - - - - = tabstripBO.screenX && curTabBO.screenX + curTabBO.width <= tabstripBO.screenX + tabstripBO.width) this.childNodes[i].setAttribute("tabIsVisible", "true"); @@ -3896,14 +3879,10 @@ this._setMenuitemAttributes(menuItem, aTab); - // Keep some attributes of the menuitem in sync with its - // corresponding tab (e.g. the tab label) aTab.mCorrespondingMenuitem = menuItem; menuItem.tab = aTab; - menuItem.addEventListener("command", this, false); this.appendChild(menuItem); - return menuItem; ]]> @@ -3938,18 +3917,17 @@ @@ -3960,14 +3938,12 @@ for (let i = this.childNodes.length - 1; i > 0; i--) { let menuItem = this.childNodes[i]; if (menuItem.tab) { - menuItem.removeEventListener("command", this, false); menuItem.tab.mCorrespondingMenuitem = null; this.removeChild(menuItem); } } var tabcontainer = gBrowser.tabContainer; tabcontainer.mTabstrip.removeEventListener("scroll", this, false); - tabcontainer.removeEventListener("TabOpen", this, false); tabcontainer.removeEventListener("TabAttrModified", this, false); tabcontainer.removeEventListener("TabClose", this, false); ]]> @@ -3988,6 +3964,11 @@ XULBrowserWindow.setOverLink("", null); ]]> + +