mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 18:07:31 +09:00
parent
4de2d1fc68
commit
a49be72173
2 changed files with 18 additions and 2 deletions
|
|
@ -168,12 +168,24 @@ var gSecurityPane = {
|
||||||
let safeBrowsingPhishingPref = document.getElementById("browser.safebrowsing.phishing.enabled");
|
let safeBrowsingPhishingPref = document.getElementById("browser.safebrowsing.phishing.enabled");
|
||||||
let safeBrowsingMalwarePref = document.getElementById("browser.safebrowsing.malware.enabled");
|
let safeBrowsingMalwarePref = document.getElementById("browser.safebrowsing.malware.enabled");
|
||||||
|
|
||||||
|
let safeBrowsingUIPref = document.getElementById("browser.safebrowsing.UI.enabled");
|
||||||
|
let safeBrowsingUISep = document.getElementById("safeBrowsingUISep");
|
||||||
|
let safeBrowsingUIGroup = document.getElementById("safeBrowsingUIGroup");
|
||||||
|
|
||||||
let blockDownloadsPref = document.getElementById("browser.safebrowsing.downloads.enabled");
|
let blockDownloadsPref = document.getElementById("browser.safebrowsing.downloads.enabled");
|
||||||
let malwareTable = document.getElementById("urlclassifier.malwareTable");
|
let malwareTable = document.getElementById("urlclassifier.malwareTable");
|
||||||
|
|
||||||
let blockUnwantedPref = document.getElementById("browser.safebrowsing.downloads.remote.block_potentially_unwanted");
|
let blockUnwantedPref = document.getElementById("browser.safebrowsing.downloads.remote.block_potentially_unwanted");
|
||||||
let blockUncommonPref = document.getElementById("browser.safebrowsing.downloads.remote.block_uncommon");
|
let blockUncommonPref = document.getElementById("browser.safebrowsing.downloads.remote.block_uncommon");
|
||||||
|
|
||||||
|
if (safeBrowsingUIPref.value == false) {
|
||||||
|
safeBrowsingUISep.setAttribute("hidden", "true");
|
||||||
|
safeBrowsingUIGroup.setAttribute("hidden", "true");
|
||||||
|
} else {
|
||||||
|
safeBrowsingUISep.removeAttribute("hidden");
|
||||||
|
safeBrowsingUIGroup.removeAttribute("hidden");
|
||||||
|
}
|
||||||
|
|
||||||
enableSafeBrowsing.addEventListener("command", function() {
|
enableSafeBrowsing.addEventListener("command", function() {
|
||||||
safeBrowsingPhishingPref.value = enableSafeBrowsing.checked;
|
safeBrowsingPhishingPref.value = enableSafeBrowsing.checked;
|
||||||
safeBrowsingMalwarePref.value = enableSafeBrowsing.checked;
|
safeBrowsingMalwarePref.value = enableSafeBrowsing.checked;
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,10 @@
|
||||||
name="browser.safebrowsing.phishing.enabled"
|
name="browser.safebrowsing.phishing.enabled"
|
||||||
type="bool"/>
|
type="bool"/>
|
||||||
|
|
||||||
|
<preference id="browser.safebrowsing.UI.enabled"
|
||||||
|
name="browser.safebrowsing.UI.enabled"
|
||||||
|
type="bool"/>
|
||||||
|
|
||||||
<preference id="browser.safebrowsing.downloads.enabled"
|
<preference id="browser.safebrowsing.downloads.enabled"
|
||||||
name="browser.safebrowsing.downloads.enabled"
|
name="browser.safebrowsing.downloads.enabled"
|
||||||
type="bool"/>
|
type="bool"/>
|
||||||
|
|
@ -73,8 +77,8 @@
|
||||||
accesskey="&addonExceptions.accesskey;"/>
|
accesskey="&addonExceptions.accesskey;"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
|
|
||||||
<separator class="thin"/>
|
<separator id="safeBrowsingUISep" class="thin"/>
|
||||||
<vbox align="start">
|
<vbox id="safeBrowsingUIGroup" align="start">
|
||||||
<checkbox id="enableSafeBrowsing"
|
<checkbox id="enableSafeBrowsing"
|
||||||
label="&enableSafeBrowsing.label;"
|
label="&enableSafeBrowsing.label;"
|
||||||
accesskey="&enableSafeBrowsing.accesskey;" />
|
accesskey="&enableSafeBrowsing.accesskey;" />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue