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.
2 parents bc2e0d3 + 0846d6f commit ebbd2cfCopy full SHA for ebbd2cf
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)
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