зеркало из https://github.com/mozilla/pjs.git
Bug #282985 --> add options UI for turning off the phishing detector.
This commit is contained in:
Родитель
8e944a97e8
Коммит
32b1765267
|
@ -53,7 +53,7 @@ const kPhishingWithMismatchedHosts = 2;
|
|||
function isMsgEmailScam(aUrl)
|
||||
{
|
||||
var isEmailScam = false;
|
||||
if (!aUrl)
|
||||
if (!aUrl || !gPrefBranch.getBoolPref("mail.phishing.detection.enabled"))
|
||||
return isEmailScam;
|
||||
|
||||
// Ignore nntp and RSS messages
|
||||
|
|
|
@ -59,6 +59,7 @@
|
|||
|
||||
var _elementIDs = [ // privacy settings
|
||||
"javascriptAllowMailNews", "networkImageDisableImagesInMailNews", "useWhiteList", "whiteListAbURI",
|
||||
"enablePhishingDetector",
|
||||
|
||||
// return receipts
|
||||
"alwaysRequest", "receiptFolder", "receiptSend", "notInToCcPref", "outsideDomainPref", "otherCasesPref",
|
||||
|
@ -109,8 +110,11 @@
|
|||
</menupopup>
|
||||
</menulist>
|
||||
</hbox>
|
||||
|
||||
|
||||
<checkbox id="enablePhishingDetector"
|
||||
label="&enablePhishingDetector.label;" accesskey="&enablePhishingDetector.accesskey;"
|
||||
prefstring="mail.phishing.detection.enabled"/>
|
||||
|
||||
<checkbox id="javascriptAllowMailNews"
|
||||
label="&enbJsCheckMailNews.label;" accesskey="&enbJsCheckMailNews.accesskey;"
|
||||
prefstring="javascript.allow.mailnews"/>
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
<!ENTITY disableImageInMailNews.accesskey "B">
|
||||
<!ENTITY allowRemoteImagesForFriends.label "Allow remote images if the sender is in my:">
|
||||
<!ENTITY allowRemoteImagesForFriends.accesskey "A">
|
||||
<!ENTITY enablePhishingDetector.label "Check mail messages for email scams">
|
||||
<!ENTITY enablePhishingDetector.accesskey "l">
|
||||
<!ENTITY enbJsCheckMailNews.label "Enable JavaScript in mail messages.">
|
||||
<!ENTITY enbJsCheckMailNews.accesskey "J">
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче