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

git-svn-id: svn://10.0.0.236/trunk@232705 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gavin%gavinsharp.com 2007-08-22 05:03:31 +00:00
parent e6b62c4b68
commit fd4d97cde2

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