mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 782684 - charsetLoadListener needs no event argument. r=gavin
This commit is contained in:
parent
313d204135
commit
be7f5807e8
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user