Bug 224002 - double clicking tab close button creates new tab. r=mconnor, a=asa.
git-svn-id: svn://10.0.0.236/trunk@232670 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
740e365308
commit
dbfcd0c068
@ -1257,7 +1257,10 @@
|
||||
<parameter name="aEvent"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
if (aEvent.originalTarget.localName != 'tab' && aEvent.button == 0) {
|
||||
if (aEvent.button == 0 && aEvent.originalTarget.localName != 'tab' &&
|
||||
// Workaround to Bug 224002, the preventBubble() call in the tabbox binding
|
||||
// should block this event.
|
||||
aEvent.originalTarget.localName != "toolbarbutton") {
|
||||
var e = document.createEvent("Events");
|
||||
e.initEvent("NewTab", false, true);
|
||||
this.dispatchEvent(e);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user