Bug 653103 - Scam detection generates too many false positives to be useful and should be easier to turn off as interim fix; r=Standard8 ui-review=bwinton

This commit is contained in:
rsx11m.pub@gmail.com 2011-05-04 15:40:31 +01:00
Родитель 81f3058a43
Коммит 74677d102e
3 изменённых файлов: 12 добавлений и 0 удалений

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

@ -2770,6 +2770,15 @@ function IgnorePhishingWarning()
setMsgHdrPropertyAndReload("notAPhishMessage", 1);
}
/**
* Allow disabling the scam feature for all messages until lists are in place.
*/
function DisablePhishingWarning()
{
Application.prefs.setValue("mail.phishing.detection.enabled", false);
ReloadMessage();
}
function setMsgHdrPropertyAndReload(aProperty, aValue)
{
// we want to get the msg hdr for the currently selected message

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

@ -1940,6 +1940,8 @@
<image id="phishingBarImage"/>
<vbox flex="1">
<description flex="1" class="msgNotificationBarText">&phishingBarMessage2.label;</description>
<label id="disablePhishingWarning" class="msgNotificaton-smallText text-link"
value="&disablePhishingWarning1.label;" onclick="DisablePhishingWarning();"/>
<label id="reportPhishingError" value="&reportPhishingError1.label;" class="msgNotificaton-smallText text-link" collapsed="true"/>
</vbox>
<button label="&removePhishingBarButton1.label;" oncommand="IgnorePhishingWarning();"/>

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

@ -758,6 +758,7 @@ you can use these alternative items. Otherwise, their values should be empty. -
<!-- Phishing Bar -->
<!ENTITY phishingBarMessage2.label "This message may be a scam.">
<!ENTITY removePhishingBarButton1.label "Ignore Warning">
<!ENTITY disablePhishingWarning1.label "Disable scam detection for all messages">
<!ENTITY reportPhishingError1.label "This message doesn't appear to be a scam.">
<!-- MDN Bar -->