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:
bzbarsky%mit.edu 2001-06-20 00:39:11 +00:00
Родитель 3a75667d13
Коммит 35dade1ebc
1 изменённых файлов: 5 добавлений и 4 удалений

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

@ -443,10 +443,11 @@ nsContextMenu.prototype = {
},
// Open new "view source" window with the frame's URL.
viewFrameSource : function () {
window.openDialog( "chrome://navigator/content/viewSource.xul",
"_blank",
"scrollbars,resizable,chrome,dialog=no",
this.target.ownerDocument.location.href);
window.openDialog( "chrome://navigator/content/viewSource.xul",
"_blank",
"scrollbars,resizable,chrome,dialog=no",
this.target.ownerDocument.location.href,
"charset=" + this.target.ownerDocument.characterSet);
},
viewInfo : function () {
BrowserPageInfo();