From 84ab1cb310b14a21d9917b9a7ce1e88a5179f9f1 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Mon, 14 Apr 2003 23:00:41 +0000 Subject: [PATCH] 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 --- mailnews/base/src/nsMsgPrintEngine.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mailnews/base/src/nsMsgPrintEngine.cpp b/mailnews/base/src/nsMsgPrintEngine.cpp index b38ee6c33ff..d6a125505df 100644 --- a/mailnews/base/src/nsMsgPrintEngine.cpp +++ b/mailnews/base/src/nsMsgPrintEngine.cpp @@ -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) {