This commit is contained in:
scott%scott-macgregor.org 2005-01-21 17:17:34 +00:00
Родитель 510e8f371c
Коммит 5d7ef66626
2 изменённых файлов: 5 добавлений и 4 удалений

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

@ -92,8 +92,9 @@
{
handleLinkClick(event, linkNode.href, null);
// block the link click if we determine that this URL
// is phishy (i.e. a potential email scam)
return isPhishingURL(linkNode, false);
// is phishy (i.e. a potential email scam)
return !isPhishingURL(linkNode, false);
}
return true;

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

@ -50,7 +50,7 @@ const kPhishingWithMismatchedHosts = 2;
function isPhishingURL(aLinkNode, aSilentMode)
{
if (!gPrefBranch.getBoolPref("mail.phishing.detection.enabled"))
return true;
return false;
var phishingType = kPhishingNotSuspicious;
var href = aLinkNode.href;
@ -121,5 +121,5 @@ function confirmSuspiciousURL(phishingType, hrefURL, linkNodeURL)
const nsIPS = Components.interfaces.nsIPromptService;
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(nsIPS);
var buttons = nsIPS.STD_YES_NO_BUTTONS + nsIPS.BUTTON_POS_1_DEFAULT;
return !promptService.confirmEx(window, titleMsg, dialogMsg, buttons, "", "", "", "", {}); /* the yes button is in position 0 */
return promptService.confirmEx(window, titleMsg, dialogMsg, buttons, "", "", "", "", {}); /* the yes button is in position 0 */
}