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:
Nicholas Nethercote 2017-08-25 16:38:11 +10:00
Родитель c32823a921
Коммит 560b213cc5
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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);