зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1319009 - View Source shows a blank New Tab with a forced charset. r=mconley,mossop
MozReview-Commit-ID: 7P7gdH8Ltmm --HG-- extra : rebase_source : de7ba0eaa280d6e539489d01c62ef5831fa88282
This commit is contained in:
Родитель
9cd626a6a3
Коммит
e35099c12e
|
@ -291,7 +291,9 @@ var ViewSourceContent = {
|
|||
const viewSrcURL = "view-source:" + URL;
|
||||
|
||||
if (forcedCharSet) {
|
||||
docShell.charset = forcedCharSet;
|
||||
try {
|
||||
docShell.charset = forcedCharSet;
|
||||
} catch (e) { /* invalid charset */ }
|
||||
}
|
||||
|
||||
if (lineNumber && lineNumber > 0) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче