Bug 782684 - charsetLoadListener needs no event argument. r=gavin

This commit is contained in:
Dão Gottwald 2012-08-21 09:54:57 +02:00
parent 313d204135
commit be7f5807e8

View File

@ -221,7 +221,7 @@ XPCOMUtils.defineLazyGetter(this, "PageMenu", function() {
function pageShowEventHandlers(event) {
// Filter out events that are not about the document load we are interested in
if (event.target == content.document) {
charsetLoadListener(event);
charsetLoadListener();
XULBrowserWindow.asyncUpdateUI();
// The PluginClickToPlay events are not fired when navigating using the
@ -5497,7 +5497,7 @@ function CreateMenu(node) {
Services.obs.notifyObservers(null, "charsetmenu-selected", node);
}
function charsetLoadListener(event) {
function charsetLoadListener() {
var charset = window.content.document.characterSet;
if (charset.length > 0 && (charset != gLastBrowserCharset)) {