From e11f4142fe7f2f3265dee5768b2a4f2660b960cb Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Wed, 3 Nov 1999 03:12:58 +0000 Subject: [PATCH] Bug #17825 --> pass nsIMsgWindow into SetWindow instead of a msgStatus feedback object in order to fix save attachements. r=sspitzer --- mailnews/mime/emitters/resources/content/attach.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mailnews/mime/emitters/resources/content/attach.js b/mailnews/mime/emitters/resources/content/attach.js index bc4b1df6038..658db2508b6 100644 --- a/mailnews/mime/emitters/resources/content/attach.js +++ b/mailnews/mime/emitters/resources/content/attach.js @@ -24,16 +24,16 @@ var messenger = Components.classes['component://netscape/messenger'].createInstance(); messenger = messenger.QueryInterface(Components.interfaces.nsIMessenger); -//Create windows status feedback -var statusFeedback = Components.classes["component://netscape/messenger/statusfeedback"].createInstance(); -statusFeedback = statusFeedback.QueryInterface(Components.interfaces.nsIMsgStatusFeedback); +//Create message window object +var msgWindow = Components.classes[msgWindowProgID].createInstance(); +msgWindow = msgWindow.QueryInterface(Components.interfaces.nsIMsgWindow); function OpenAttachURL(url, displayName, messageUri) { dump("\nOpenAttachURL from XUL\n"); dump(url); dump("\n"); - messenger.SetWindow(window, statusFeedback); + messenger.SetWindow(window, msgWindow); messenger.openAttachment(url, displayName, messageUri); }