mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 224002 - double clicking tab close button creates new tab. r=mconnor, a=asa.
This commit is contained in:
parent
b81ed74a32
commit
dc6a162d91
@ -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…
Reference in New Issue
Block a user