зеркало из https://github.com/mozilla/gecko-dev.git
Make "View Source of Frame" inherit the charset of the document in the
frame. Bug 85346, r=ftang, sr=blizzard, a=asa
This commit is contained in:
Родитель
3a75667d13
Коммит
35dade1ebc
|
@ -443,10 +443,11 @@ nsContextMenu.prototype = {
|
||||||
},
|
},
|
||||||
// Open new "view source" window with the frame's URL.
|
// Open new "view source" window with the frame's URL.
|
||||||
viewFrameSource : function () {
|
viewFrameSource : function () {
|
||||||
window.openDialog( "chrome://navigator/content/viewSource.xul",
|
window.openDialog( "chrome://navigator/content/viewSource.xul",
|
||||||
"_blank",
|
"_blank",
|
||||||
"scrollbars,resizable,chrome,dialog=no",
|
"scrollbars,resizable,chrome,dialog=no",
|
||||||
this.target.ownerDocument.location.href);
|
this.target.ownerDocument.location.href,
|
||||||
|
"charset=" + this.target.ownerDocument.characterSet);
|
||||||
},
|
},
|
||||||
viewInfo : function () {
|
viewInfo : function () {
|
||||||
BrowserPageInfo();
|
BrowserPageInfo();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче