Bug 586212 - Don't carry out the command when clicking on a disabled splitmenu. r=dolske

This commit is contained in:
Dão Gottwald 2011-03-03 11:34:55 +01:00
parent 4768982795
commit c1b5d15bb7

View File

@ -1166,6 +1166,12 @@
]]></handler>
<handler event="click" phase="capturing"><![CDATA[
if (this.getAttribute("disabled") == "true") {
// Prevent the command from being carried out
event.stopPropagation();
return;
}
let node = event.originalTarget;
while (true) {
if (node == this.menuitem)