Fix for bug 108731. Send page must use the message compose service in order to be able to use the recycled compose window. R=varada, SR=mscott

This commit is contained in:
ducarroz%netscape.com 2001-11-20 03:12:32 +00:00
Родитель e2f1b0657c
Коммит ccfcbff06d
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -641,10 +641,10 @@ var nsSendPageCommand =
// Launch Messenger Composer window with current page as contents
var pageTitle = window.editorShell.editorDocument.title;
var pageUrl = window.editorShell.editorDocument.location.href;
window.openDialog( "chrome://messenger/content/messengercompose/messengercompose.xul", "_blank",
"chrome,all,dialog=no",
"attachment='" + pageUrl.replace(/\,/g, "%2C") + "',body='" + pageUrl +
"',subject='" + pageTitle + "',bodyislink=true");
try
{
openComposeWindow(pageUrl, pageTitle);
} catch (ex) { dump("Cannot Send Page: " + ex + "\n"); }
}
}
};