Bug 956657 Followup tweak r=Unfocused

This commit is contained in:
Neil Rashbrook 2014-02-25 00:19:36 +00:00
parent 9662b1ad04
commit 599e862904
2 changed files with 3 additions and 3 deletions

View File

@ -203,7 +203,7 @@
accesskey="&charsetMenu.accesskey;"
oncommand="BrowserSetCharacterSet(event);"
onpopupshowing="CharsetMenu.build(event.target);"
onpopupshown="CharsetMenu.update(event, content.document.characterSet);">
onpopupshown="CharsetMenu.update(event.target, content.document.characterSet);">
<menupopup/>
</menu>
<menuseparator/>

View File

@ -250,8 +250,8 @@ let CharsetMenu = {
}
},
update: function(event, charset) {
let menuitem = event.target.getElementsByAttribute("charset", this.foldCharset(charset)).item(0);
update: function(parent, charset) {
let menuitem = parent.getElementsByAttribute("charset", this.foldCharset(charset)).item(0);
if (menuitem) {
menuitem.setAttribute("checked", "true");
}