Bug 1393692 (part 2) - Fix forcedCharset assignment. r=jorgk
nsIDocShell.forcedCharset is an `ACString` attribute. viewlog.js currently assigns it an atom. This patch changes it to a string. (It's likely this code is unused, because it was clearly broken: mAtomService is not mentioned anywhere else in the code.)
This commit is contained in:
Родитель
c32823a921
Коммит
560b213cc5
|
@ -103,8 +103,7 @@ var logWindow = {
|
|||
let browser = document.getElementById("text-browser");
|
||||
findbar.browser = browser;
|
||||
FullZoom.applyPrefValue();
|
||||
browser.docShell.forcedCharset =
|
||||
browser.mAtomService.getAtom("UTF-8");
|
||||
browser.docShell.forcedCharset = "UTF-8";
|
||||
let file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsIFile);
|
||||
file.initWithPath(log.path);
|
||||
browser.loadURI(Services.io.newFileURI(file).spec);
|
||||
|
|
Загрузка…
Ссылка в новой задаче