Bug 578614 - tab context menu should not appear when right-clicking new tab button or the space to its right. r=dao

This commit is contained in:
Frank Yan 2010-07-17 10:08:43 +02:00
Родитель 571ff20b60
Коммит 11841ef388
2 изменённых файлов: 4 добавлений и 5 удалений

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

@ -859,7 +859,6 @@
<tabs id="tabbrowser-tabs" <tabs id="tabbrowser-tabs"
class="tabbrowser-tabs" class="tabbrowser-tabs"
context="tabContextMenu"
tabbrowser="content" tabbrowser="content"
flex="1" flex="1"
setfocus="false" setfocus="false"

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

@ -2404,7 +2404,7 @@
</field> </field>
<field name="contextMenu" readonly="true"> <field name="contextMenu" readonly="true">
document.getElementById(this.getAttribute("context")); document.getElementById("tabContextMenu");
</field> </field>
<field name="mTabstripWidth">0</field> <field name="mTabstripWidth">0</field>
@ -2563,7 +2563,7 @@
<field name="_animateElement"> <field name="_animateElement">
this.mTabstrip._scrollButtonDown; this.mTabstrip._scrollButtonDown;
</field> </field>
<method name="_notifyBackgroundTab"> <method name="_notifyBackgroundTab">
<parameter name="aTab"/> <parameter name="aTab"/>
<body><![CDATA[ <body><![CDATA[
@ -2786,7 +2786,7 @@
// otherwise trying to deatch the tab by dropping it on the desktop // otherwise trying to deatch the tab by dropping it on the desktop
// may result in an "internet shortcut" // may result in an "internet shortcut"
dt.mozSetDataAt("text/x-moz-text-internal", spec, 0); dt.mozSetDataAt("text/x-moz-text-internal", spec, 0);
// Set the cursor to an arrow during tab drags. // Set the cursor to an arrow during tab drags.
dt.mozCursor = "default"; dt.mozCursor = "default";
@ -3091,7 +3091,7 @@
<stylesheet src="chrome://browser/content/tabbrowser.css"/> <stylesheet src="chrome://browser/content/tabbrowser.css"/>
</resources> </resources>
<content closetabtext="&closeTab.label;"> <content context="tabContextMenu" closetabtext="&closeTab.label;">
<xul:image xbl:inherits="validate,src=image" <xul:image xbl:inherits="validate,src=image"
class="tab-icon-image" class="tab-icon-image"
role="presentation"/> role="presentation"/>