From c9fbe7c6f4546a3f11c06f72923eaaed479e5f70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A3o=20Gottwald?= Date: Tue, 24 Jan 2012 01:39:49 +0100 Subject: [PATCH] Bug 714594 - Don't list app tabs in the all tabs menu. r=mak ui-r=boriss --HG-- extra : rebase_source : 462d500d1f44f637bb30eb7c29d0e444e221964f --- browser/base/content/tabbrowser.xml | 45 +++++++++-------------------- 1 file changed, 13 insertions(+), 32 deletions(-) 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); ]]> + +