зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
2274aa9a8f
Коммит
e11f4142fe
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче