зеркало из https://github.com/mozilla/gecko-dev.git
Bug 312896: tab strip should not respond to double click in space above and below tabs, r=mconnor
This commit is contained in:
Родитель
95fbb23132
Коммит
fc219b27a3
|
@ -1329,10 +1329,9 @@
|
|||
<parameter name="aEvent"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
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") {
|
||||
if (aEvent.button == 0 &&
|
||||
// Only capture clicks on tabbox.xml's <spacer>
|
||||
aEvent.originalTarget.localName == "spacer") {
|
||||
var e = document.createEvent("Events");
|
||||
e.initEvent("NewTab", false, true);
|
||||
this.dispatchEvent(e);
|
||||
|
|
Загрузка…
Ссылка в новой задаче