Backed out changeset e30f1765a42c

This commit is contained in:
Dão Gottwald 2009-01-17 04:59:36 +01:00
Родитель 6c1240878f
Коммит 6f68bd7a44
1 изменённых файлов: 3 добавлений и 12 удалений

Просмотреть файл

@ -119,7 +119,7 @@
<xul:menuseparator/> <xul:menuseparator/>
<xul:menuitem id="context_closeTab" label="&closeTab.label;" accesskey="&closeTab.accesskey;" <xul:menuitem id="context_closeTab" label="&closeTab.label;" accesskey="&closeTab.accesskey;"
oncommand="var tabbrowser = this.parentNode.parentNode.parentNode.parentNode; oncommand="var tabbrowser = this.parentNode.parentNode.parentNode.parentNode;
tabbrowser.removeClickedTab(tabbrowser.mContextTab);"/> tabbrowser.removeTab(tabbrowser.mContextTab);"/>
</xul:menupopup> </xul:menupopup>
<xul:tabs class="tabbrowser-tabs" flex="1" <xul:tabs class="tabbrowser-tabs" flex="1"
@ -1015,7 +1015,7 @@
if (event.button != 1 || event.target.localName != 'tab') if (event.button != 1 || event.target.localName != 'tab')
return; return;
this.removeClickedTab(event.target); this.removeTab(event.target);
event.stopPropagation(); event.stopPropagation();
]]> ]]>
</body> </body>
@ -1497,15 +1497,6 @@
</body> </body>
</method> </method>
<method name="removeClickedTab">
<parameter name="aTab"/>
<body>
<![CDATA[
this._endRemoveTab(this._beginRemoveTab(aTab, true, false));
]]>
</body>
</method>
<!-- Returns everything that _endRemoveTab needs in an array. --> <!-- Returns everything that _endRemoveTab needs in an array. -->
<method name="_beginRemoveTab"> <method name="_beginRemoveTab">
<parameter name="aTab"/> <parameter name="aTab"/>
@ -3301,7 +3292,7 @@
// Reset the "ignored click" flag // Reset the "ignored click" flag
this._ignoredClick = false; this._ignoredClick = false;
tabbedBrowser.removeClickedTab(bindingParent); tabbedBrowser.removeTab(bindingParent);
tabbedBrowser._blockDblClick = true; tabbedBrowser._blockDblClick = true;
/* XXXmano hack (see bug 343628): /* XXXmano hack (see bug 343628):