summaryrefslogtreecommitdiffstats
path: root/application/basilisk/components/preferences/in-content/privacy.js
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-06-10 15:56:51 +0300
committerJustOff <Off.Just.Off@gmail.com>2018-06-10 15:56:51 +0300
commit6a9562e5a58716fda5676eb8f7c5d48d9a3b3fd1 (patch)
tree0a7644fbd4b42654cf46cea65a7d69125872fadc /application/basilisk/components/preferences/in-content/privacy.js
parenta0cca670db37a84674512948c54acd2673ddd704 (diff)
downloadUXP-6a9562e5a58716fda5676eb8f7c5d48d9a3b3fd1.tar
UXP-6a9562e5a58716fda5676eb8f7c5d48d9a3b3fd1.tar.gz
UXP-6a9562e5a58716fda5676eb8f7c5d48d9a3b3fd1.tar.lz
UXP-6a9562e5a58716fda5676eb8f7c5d48d9a3b3fd1.tar.xz
UXP-6a9562e5a58716fda5676eb8f7c5d48d9a3b3fd1.zip
[BASILISK] Remove tracking protection controls from the UI if safebrowsing isn't built
Diffstat (limited to 'application/basilisk/components/preferences/in-content/privacy.js')
-rw-r--r--application/basilisk/components/preferences/in-content/privacy.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/application/basilisk/components/preferences/in-content/privacy.js b/application/basilisk/components/preferences/in-content/privacy.js
index 7dfc7de5a..fced02fe6 100644
--- a/application/basilisk/components/preferences/in-content/privacy.js
+++ b/application/basilisk/components/preferences/in-content/privacy.js
@@ -22,6 +22,7 @@ var gPrivacyPane = {
*/
_shouldPromptForRestart: true,
+#ifdef MOZ_SAFEBROWSING
/**
* Show the Tracking Protection UI depending on the
* privacy.trackingprotection.ui.enabled pref, and linkify its Learn More link
@@ -50,6 +51,7 @@ var gPrivacyPane = {
let url = Services.urlFormatter.formatURLPref("app.support.baseURL") + "tracking-protection-pbm";
link.setAttribute("href", url);
},
+#endif
/**
* Initialize autocomplete to ensure prefs are in sync.
@@ -129,8 +131,10 @@ var gPrivacyPane = {
this.updateHistoryModePane();
this.updatePrivacyMicroControls();
this.initAutoStartPrivateBrowsingReverter();
+#ifdef MOZ_SAFEBROWSING
this._initTrackingProtection();
this._initTrackingProtectionPBM();
+#endif
this._initAutocomplete();
this._initBrowserContainers();
@@ -156,10 +160,12 @@ var gPrivacyPane = {
gPrivacyPane.clearPrivateDataNow(true);
return false;
});
+#ifdef MOZ_SAFEBROWSING
setEventListener("doNotTrackSettings", "click", function () {
gPrivacyPane.showDoNotTrackSettings();
return false;
});
+#endif
setEventListener("privateBrowsingAutoStart", "command",
gPrivacyPane.updateAutostart);
setEventListener("cookieExceptions", "command",
@@ -168,6 +174,7 @@ var gPrivacyPane = {
gPrivacyPane.showCookies);
setEventListener("clearDataSettings", "command",
gPrivacyPane.showClearPrivateDataSettings);
+#ifdef MOZ_SAFEBROWSING
setEventListener("trackingProtectionRadioGroup", "command",
gPrivacyPane.trackingProtectionWritePrefs);
setEventListener("trackingProtectionExceptions", "command",
@@ -176,12 +183,14 @@ var gPrivacyPane = {
gPrivacyPane.showBlockLists);
setEventListener("changeBlockListPBM", "command",
gPrivacyPane.showBlockLists);
+#endif
setEventListener("browserContainersCheckbox", "command",
gPrivacyPane._checkBrowserContainers);
setEventListener("browserContainersSettings", "command",
gPrivacyPane.showContainerSettings);
},
+#ifdef MOZ_SAFEBROWSING
// TRACKING PROTECTION MODE
/**
@@ -225,6 +234,7 @@ var gPrivacyPane = {
break;
}
},
+#endif
// HISTORY MODE
@@ -462,6 +472,7 @@ var gPrivacyPane = {
this._shouldPromptForRestart = true;
},
+#ifdef MOZ_SAFEBROWSING
/**
* Displays fine-grained, per-site preferences for tracking protection.
*/
@@ -476,6 +487,7 @@ var gPrivacyPane = {
gSubDialog.open("chrome://browser/content/preferences/permissions.xul",
null, params);
},
+#endif
/**
* Displays container panel for customising and adding containers.
@@ -484,6 +496,7 @@ var gPrivacyPane = {
gotoPref("containers");
},
+#ifdef MOZ_SAFEBROWSING
/**
* Displays the available block lists for tracking protection.
*/
@@ -506,6 +519,7 @@ var gPrivacyPane = {
gSubDialog.open("chrome://browser/content/preferences/donottrack.xul",
"resizable=no");
},
+#endif
// HISTORY