Make widgets events bubble again as per expectations b=330190 r=bryner
git-svn-id: svn://10.0.0.236/trunk@232715 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
8757d473e0
commit
901bfe2156
@ -59,7 +59,8 @@
|
|||||||
|
|
||||||
<content>
|
<content>
|
||||||
<xul:stringbundle src="chrome://global/locale/tabbrowser.properties"/>
|
<xul:stringbundle src="chrome://global/locale/tabbrowser.properties"/>
|
||||||
<xul:tabbox flex="1" eventnode="document" xbl:inherits="handleCtrlPageUpDown">
|
<xul:tabbox flex="1" eventnode="document" xbl:inherits="handleCtrlPageUpDown"
|
||||||
|
onselect="if (!('updateCurrentBrowser' in this.parentNode) || event.target.localName != 'tabpanels') return; this.parentNode.updateCurrentBrowser();">
|
||||||
<xul:hbox class="tab-drop-indicator-bar">
|
<xul:hbox class="tab-drop-indicator-bar">
|
||||||
<xul:hbox class="tab-drop-indicator"/>
|
<xul:hbox class="tab-drop-indicator"/>
|
||||||
</xul:hbox>
|
</xul:hbox>
|
||||||
@ -106,10 +107,7 @@
|
|||||||
class="tabbrowser-tab" label="&untitledTab;" crop="end"/>
|
class="tabbrowser-tab" label="&untitledTab;" crop="end"/>
|
||||||
</xul:tabs>
|
</xul:tabs>
|
||||||
</xul:hbox>
|
</xul:hbox>
|
||||||
<xul:tabpanels flex="1" class="plain" selectedIndex="0"
|
<xul:tabpanels flex="1" class="plain" selectedIndex="0">
|
||||||
onselect="if (!('updateCurrentBrowser' in this.parentNode.parentNode) ||
|
|
||||||
event.target != this) return;
|
|
||||||
this.parentNode.parentNode.updateCurrentBrowser();">
|
|
||||||
<xul:vbox flex="1">
|
<xul:vbox flex="1">
|
||||||
<xul:browsermessage hidden="true" type="top"/>
|
<xul:browsermessage hidden="true" type="top"/>
|
||||||
<xul:browser flex="1" type="content-primary" message="true" disablehistory="true" xbl:inherits="tooltip=contenttooltip,contextmenu=contentcontextmenu,autocompletepopup"/>
|
<xul:browser flex="1" type="content-primary" message="true" disablehistory="true" xbl:inherits="tooltip=contenttooltip,contextmenu=contentcontextmenu,autocompletepopup"/>
|
||||||
@ -1427,7 +1425,7 @@
|
|||||||
// Only capture clicks on tabbox.xml's <spacer>
|
// Only capture clicks on tabbox.xml's <spacer>
|
||||||
aEvent.originalTarget.localName == "spacer") {
|
aEvent.originalTarget.localName == "spacer") {
|
||||||
var e = document.createEvent("Events");
|
var e = document.createEvent("Events");
|
||||||
e.initEvent("NewTab", false, true);
|
e.initEvent("NewTab", true, true);
|
||||||
this.dispatchEvent(e);
|
this.dispatchEvent(e);
|
||||||
}
|
}
|
||||||
]]>
|
]]>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user