diff options
author | Thomas Groman <tgroman@nuegia.net> | 2019-12-16 21:30:30 -0800 |
---|---|---|
committer | Thomas Groman <tgroman@nuegia.net> | 2019-12-16 21:30:30 -0800 |
commit | e6e22e652391ca01634a42490080361c1de7f322 (patch) | |
tree | 0c97e6a5684dff9ce943701f78dc48c3933a95b3 /components/preferences | |
parent | a50d5373404363e0f7ad98333ad29cf77d672e88 (diff) | |
download | webbrowser-e6e22e652391ca01634a42490080361c1de7f322.tar webbrowser-e6e22e652391ca01634a42490080361c1de7f322.tar.gz webbrowser-e6e22e652391ca01634a42490080361c1de7f322.tar.lz webbrowser-e6e22e652391ca01634a42490080361c1de7f322.tar.xz webbrowser-e6e22e652391ca01634a42490080361c1de7f322.zip |
remove HPKP from UI as it's being deprecated in UXP
Diffstat (limited to 'components/preferences')
-rw-r--r-- | components/preferences/security.js | 12 | ||||
-rw-r--r-- | components/preferences/security.xul | 5 |
2 files changed, 1 insertions, 16 deletions
diff --git a/components/preferences/security.js b/components/preferences/security.js index 9d5f302..a0f283d 100644 --- a/components/preferences/security.js +++ b/components/preferences/security.js @@ -18,7 +18,6 @@ var gSecurityPane = { { this._pane = document.getElementById("paneSecurity"); this._initMasterPasswordUI(); - this._initHPKPUI(); }, // ADD-ONS @@ -234,17 +233,6 @@ var gSecurityPane = { "chrome://passwordmgr/content/passwordManager.xul", "", null); }, - - _initHPKPUI: function() { - let checkbox = document.getElementById("enableHPKP"); - let HPKPpref = document.getElementById("security.cert_pinning.enforcement_level"); - - if (HPKPpref.value == 0) { - checkbox.checked = false; - } else { - checkbox.checked = true; - } - }, /** * Updates the HPKP enforcement level to the proper value depending on checkbox diff --git a/components/preferences/security.xul b/components/preferences/security.xul index bc16252..bae6cca 100644 --- a/components/preferences/security.xul +++ b/components/preferences/security.xul @@ -46,9 +46,6 @@ <preference id="network.stricttransportsecurity.enabled" name="network.stricttransportsecurity.enabled" type="bool"/> - <preference id="security.cert_pinning.enforcement_level" - name="security.cert_pinning.enforcement_level" - type="int"/> <!-- Opportunistic Encryption --> @@ -150,7 +147,7 @@ <checkbox id="enableHPKP" label="&enableHPKP.label;" accesskey="&enableHPKP.accesskey;" - oncommand="gSecurityPane.updateHPKPPref();"/> + preference="security.cert_pinning.hpkp.enabled"/> </vbox> </groupbox> |