зеркало из https://github.com/mozilla/pjs.git
fix for bug #118887
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:
Родитель
71205758b2
Коммит
84ab1cb310
|
@ -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)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче