зеркало из https://github.com/mozilla/pjs.git
32591 View source page is displayed as ISO-8859-1 when meta tag is missing
36136 [regression]View source with meta charset info can't be displayed properly 27646 Need to "inherit" charset info when opening a new browser widow r=ftang
This commit is contained in:
Родитель
9ab9f29cc8
Коммит
e2b6904fb8
|
@ -341,6 +341,18 @@ function Startup()
|
|||
contentArea.addEventListener("load", UpdateInternetSearchResults, true);
|
||||
}
|
||||
|
||||
if ( window.arguments && window.arguments[1] ) {
|
||||
if (window.arguments[1].indexOf('charset=') != -1) {
|
||||
arrayArgComponents = window.arguments[1].split('=');
|
||||
if (arrayArgComponents) {
|
||||
if (appCore != null) {
|
||||
appCore.SetDocumentCharset(arrayArgComponents[1]);
|
||||
}
|
||||
dump("*** SetDocumentCharset(" + arrayArgComponents[1] + ")\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Check for window.arguments[0]. If present, go to that url.
|
||||
if ( window.arguments && window.arguments[0] ) {
|
||||
// Load it using yet another psuedo-onload handler.
|
||||
|
|
Загрузка…
Ссылка в новой задаче