Fix for 25912. Making the security advisor in the Task menu not display any

information about the current page.
This commit is contained in:
dougt%netscape.com 2000-03-30 00:00:05 +00:00
Родитель ddcfceb254
Коммит 0a4a31a412
1 изменённых файлов: 27 добавлений и 23 удалений

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

@ -214,9 +214,12 @@ PRStatus DisplayPSMUIDialog(PCMT_CONTROL control, const char *pickledStatus, con
CMTSecurityAdvisorData data;
memset(&data, '\0', sizeof(CMTSecurityAdvisorData));
data.infoContext = SSM_BROWSER;
if (hostName)
{
// if there is a hostName, than this request is about
// a webpage.
data.hostname = (char*) hostName;
data.infoContext = SSM_BROWSER;
if (pickledStatus)
{
@ -242,6 +245,7 @@ PRStatus DisplayPSMUIDialog(PCMT_CONTROL control, const char *pickledStatus, con
PR_FREEIF(pickledResource.data);
}
}
/* Create a Security Advisor context object. */
rv = CMT_SecurityAdvisor(control, &data, &advRID);