From 35dade1ebc5332f56eed1c52a3de8e7b480696f9 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Wed, 20 Jun 2001 00:39:11 +0000 Subject: [PATCH] Make "View Source of Frame" inherit the charset of the document in the frame. Bug 85346, r=ftang, sr=blizzard, a=asa --- xpfe/communicator/resources/content/nsContextMenu.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xpfe/communicator/resources/content/nsContextMenu.js b/xpfe/communicator/resources/content/nsContextMenu.js index 14dc98ae8939..d460848fecfa 100644 --- a/xpfe/communicator/resources/content/nsContextMenu.js +++ b/xpfe/communicator/resources/content/nsContextMenu.js @@ -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();