summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/preferences/privacy.js
diff options
context:
space:
mode:
authorRyan Fox <flewkey@2a03.party>2019-07-27 08:27:38 +0000
committerRyan Fox <flewkey@2a03.party>2019-07-27 08:27:38 +0000
commit93ceb82819eb2ed38f35d222675211bf03dde9e0 (patch)
treee51c307e7e12bc53ef6a6d285a66fe0d39df6050 /application/palemoon/components/preferences/privacy.js
parent9b0ff0e8bcc2bf9f6d18be4e6b7c956fbfd831ee (diff)
downloadUXP-93ceb82819eb2ed38f35d222675211bf03dde9e0.tar
UXP-93ceb82819eb2ed38f35d222675211bf03dde9e0.tar.gz
UXP-93ceb82819eb2ed38f35d222675211bf03dde9e0.tar.lz
UXP-93ceb82819eb2ed38f35d222675211bf03dde9e0.tar.xz
UXP-93ceb82819eb2ed38f35d222675211bf03dde9e0.zip
Issue #1156 - Location Bar Preferences Checkboxes
Signed-off-by: Ryan Fox <flewkey@2a03.party>
Diffstat (limited to 'application/palemoon/components/preferences/privacy.js')
-rw-r--r--application/palemoon/components/preferences/privacy.js30
1 files changed, 0 insertions, 30 deletions
diff --git a/application/palemoon/components/preferences/privacy.js b/application/palemoon/components/preferences/privacy.js
index 05c2f9b8a..e2a871acc 100644
--- a/application/palemoon/components/preferences/privacy.js
+++ b/application/palemoon/components/preferences/privacy.js
@@ -298,36 +298,6 @@ var gPrivacyPane = {
// HISTORY
- /**
- * Read the location bar enabled and suggestion prefs
- * @return Int value for suggestion menulist
- */
- readSuggestionPref: function PPP_readSuggestionPref()
- {
- let getVal = function(aPref)
- document.getElementById("browser.urlbar." + aPref).value;
-
- // Suggest nothing if autocomplete is not enabled
- if (!getVal("autocomplete.enabled"))
- return -1;
-
- // Bottom 2 bits of default.behavior specify history/bookmark
- return getVal("default.behavior") & 3;
- },
-
- /**
- * Update browser.urlbar.autocomplete.enabled when a
- * browser.urlbar.suggest.* pref is changed from the ui.
- */
- writeSuggestionPref: function PPP_writeSuggestionPref() {
- let getVal = (aPref) => {
- return document.getElementById("browser.urlbar.suggest." + aPref).value;
- }
- // autocomplete.enabled is true if any of the suggestions is true
- let enabled = ["history", "bookmark", "openpage"].map(getVal).some(v => v);
- Services.prefs.setBoolPref("browser.urlbar.autocomplete.enabled", enabled);
- },
-
/*
* Preferences:
*