зеркало из https://github.com/mozilla/gecko-dev.git
Make widgets generate bubbling events again as that's what extensions (such as multizilla) are expecting b=330190 r=smaug sr=jag
This commit is contained in:
Родитель
2740481461
Коммит
484bca8aad
|
@ -41,7 +41,7 @@
|
|||
this.removeAttribute('checked');
|
||||
if (change) {
|
||||
var event = document.createEvent('Events');
|
||||
event.initEvent('CheckboxStateChange', false, true);
|
||||
event.initEvent('CheckboxStateChange', true, true);
|
||||
this.dispatchEvent(event);
|
||||
}
|
||||
return aValue;
|
||||
|
|
|
@ -298,7 +298,7 @@
|
|||
aCell.setAttribute("hover", "true");
|
||||
this.mHoverCell = aCell;
|
||||
var event = document.createEvent('Events');
|
||||
event.initEvent('DOMMenuItemActive', false, true);
|
||||
event.initEvent('DOMMenuItemActive', true, true);
|
||||
aCell.dispatchEvent(event);
|
||||
}
|
||||
]]></body>
|
||||
|
|
|
@ -299,7 +299,7 @@
|
|||
<body>
|
||||
<![CDATA[
|
||||
var event = document.createEvent("Events");
|
||||
event.initEvent("dialog"+aDlgType, false, true);
|
||||
event.initEvent("dialog"+aDlgType, true, true);
|
||||
|
||||
// handle dom event handlers
|
||||
var noCancel = this.dispatchEvent(event);
|
||||
|
|
|
@ -320,7 +320,7 @@
|
|||
return val;
|
||||
this.setAttribute("selectedIndex", val);
|
||||
var event = document.createEvent('Events');
|
||||
event.initEvent('select', false, true);
|
||||
event.initEvent('select', true, true);
|
||||
this.dispatchEvent(event);
|
||||
return val;
|
||||
]]>
|
||||
|
|
|
@ -99,7 +99,7 @@
|
|||
<![CDATA[
|
||||
if (!this._suppressOnSelect && this.getAttribute("suppressonselect") != "true") {
|
||||
var event = document.createEvent("Events");
|
||||
event.initEvent("select", false, true);
|
||||
event.initEvent("select", true, true);
|
||||
this.dispatchEvent(event);
|
||||
}
|
||||
]]>
|
||||
|
@ -819,7 +819,7 @@
|
|||
else
|
||||
this.removeAttribute('checked');
|
||||
var event = document.createEvent('Events');
|
||||
event.initEvent('CheckboxStateChange', false, true);
|
||||
event.initEvent('CheckboxStateChange', true, true);
|
||||
this.dispatchEvent(event);
|
||||
return val;
|
||||
]]></setter>
|
||||
|
|
|
@ -279,13 +279,6 @@
|
|||
</implementation>
|
||||
|
||||
<handlers>
|
||||
<handler event="select">
|
||||
<![CDATA[
|
||||
//XXXblake this should not be necessary
|
||||
// initEvent was supposed to prevent this from bubbling
|
||||
event.preventBubble();
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="mousedown">
|
||||
if (this.disabled)
|
||||
event.preventDefault();
|
||||
|
|
|
@ -277,7 +277,7 @@
|
|||
|
||||
// Fire an onselect event for the tabs element.
|
||||
var event = document.createEvent('Events');
|
||||
event.initEvent('select', false, true);
|
||||
event.initEvent('select', true, true);
|
||||
this.dispatchEvent(event);
|
||||
}
|
||||
return val;
|
||||
|
@ -468,7 +468,7 @@
|
|||
this.setAttribute("selectedIndex", val);
|
||||
if (this._selectedPanel != panel) {
|
||||
var event = document.createEvent("Events");
|
||||
event.initEvent("select", false, true);
|
||||
event.initEvent("select", true, true);
|
||||
this.dispatchEvent(event);
|
||||
}
|
||||
return val;
|
||||
|
|
|
@ -109,8 +109,7 @@
|
|||
class="tabbrowser-tab" label="&untitledTab;" crop="end"/>
|
||||
</xul:tabs>
|
||||
</xul:hbox>
|
||||
<xul:tabpanels flex="1" class="plain" selectedIndex="0" anonid="panelcontainer"
|
||||
onselect="if (event.originalTarget == this) this.parentNode.parentNode.updateCurrentBrowser();">
|
||||
<xul:tabpanels flex="1" class="plain" selectedIndex="0" anonid="panelcontainer">
|
||||
<xul:browser type="content-primary" xbl:inherits="tooltip=contenttooltip,contextmenu=contentcontextmenu"/>
|
||||
</xul:tabpanels>
|
||||
</xul:tabbox>
|
||||
|
@ -1831,6 +1830,8 @@
|
|||
</implementation>
|
||||
|
||||
<handlers>
|
||||
<handler event="select" action="if (event.originalTarget == this.mPanelContainer) this.updateCurrentBrowser();"/>
|
||||
|
||||
<handler event="DOMLinkAdded" action="this.onLinkAdded(event);"/>
|
||||
|
||||
<handler event="DOMWindowClose">
|
||||
|
|
|
@ -223,7 +223,7 @@
|
|||
// Only fire event when current row is expanded or collapsed
|
||||
// because that's all the assistive technology really cares about.
|
||||
var event = document.createEvent('Events');
|
||||
event.initEvent('OpenStateChange', false, true);
|
||||
event.initEvent('OpenStateChange', true, true);
|
||||
this.dispatchEvent(event);
|
||||
}
|
||||
return true;
|
||||
|
|
|
@ -371,7 +371,7 @@
|
|||
<body>
|
||||
<![CDATA[
|
||||
var event = document.createEvent("Events");
|
||||
event.initEvent(aType, false, true);
|
||||
event.initEvent(aType, true, true);
|
||||
|
||||
// handle dom event handlers
|
||||
var noCancel = aTarget.dispatchEvent(event);
|
||||
|
|
Загрузка…
Ссылка в новой задаче