We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
set encoding=
1 parent 9e519de commit c145359Copy full SHA for c145359
common/content/browser.js
@@ -43,7 +43,10 @@ const Browser = Module("browser", {
43
// Stolen from browser.jar/content/browser/browser.js, more or less.
44
try {
45
config.browser.docShell.QueryInterface(Ci.nsIDocCharset).charset = val;
46
- PlacesUtils.history.setCharsetForURI(getWebNavigation().currentURI, val);
+ if (PlacesUtils.history.setCharsetForURI !== undefined)
47
+ PlacesUtils.history.setCharsetForURI(getWebNavigation().currentURI, val);
48
+ else
49
+ PlacesUtils.setCharsetForURI(getWebNavigation().currentURI, val);
50
getWebNavigation().reload(Ci.nsIWebNavigation.LOAD_FLAGS_CHARSET_CHANGE);
51
}
52
catch (e) { liberator.echoerr(e); }
0 commit comments