Bug #17825 --> pass nsIMsgWindow into SetWindow instead of a msgStatus feedback object in order

to fix save attachements.
r=sspitzer
This commit is contained in:
mscott%netscape.com 1999-11-03 03:12:58 +00:00
Родитель 2274aa9a8f
Коммит e11f4142fe
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -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);
}