don't show the data: url when printing an addressbook card, or the addr book url when
printing an addressbook, as they are meaningless and confusing to the user.

also, don't show the mail urls when printing a message, as it leaks out the
username and the salt.  part of bug #176016

r/sr=bienvenu
This commit is contained in:
sspitzer%netscape.com 2003-04-14 23:00:41 +00:00
Родитель 71205758b2
Коммит 84ab1cb310
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -665,6 +665,13 @@ nsMsgPrintEngine::PrintMsgWindow()
{
mWebBrowserPrint->GetGlobalPrintSettings(getter_AddRefs(mPrintSettings));
}
// fix for bug #118887 and bug #176016
// don't show the actual url when printing mail messages or addressbook cards.
// for mail, it can review the salt. for addrbook, it's a data:// url, which
// means nothing to the end user.
mPrintSettings->SetDocURL(NS_LITERAL_STRING(" ").get());
nsresult rv = NS_ERROR_FAILURE;
if (mIsDoingPrintPreview)
{