Bug 224002 - double clicking tab close button creates new tab. r=mconnor, a=asa.

This commit is contained in:
mozilla.mano@sent.com 2007-08-21 22:00:18 -07:00
parent b81ed74a32
commit dc6a162d91

View File

@ -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);