Bug 312896: tab strip should not respond to double click in space above and below tabs, r=mconnor

This commit is contained in:
gavin@gavinsharp.com 2007-08-21 22:00:53 -07:00
parent baa5f5d4ac
commit 152298dc8e

View File

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