Bug 353303 - regression: Tabs are closed when right-clicking the close button. patch from Simon Bnzli <zeniko@gmail.com>, r=me.

This commit is contained in:
mozilla.mano%sent.com 2006-09-19 17:56:52 +00:00
Родитель 39493f2069
Коммит 659a0752a3
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -2937,7 +2937,7 @@
<binding id="tabbrowser-close-tab-button"
extends="chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton-image">
<handlers>
<handler event="click"><![CDATA[
<handler event="click" button="0"><![CDATA[
var bindingParent = document.getBindingParent(this);
if (bindingParent) {
var tabbedBrowser = document.getBindingParent(bindingParent);
@ -2975,7 +2975,7 @@
tabbedBrowser.removeCurrentTab();
}
]]></handler>
<handler event="dblclick" phase="capturing">
<handler event="dblclick" button="0" phase="capturing">
// for the one-close-button case
event.stopPropagation();
</handler>