summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/nsBrowserGlue.js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-11-14 12:26:32 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-11-14 12:26:32 +0100
commiteffff24825e50bd525892375e18cdaeb627f5855 (patch)
treeecf75a7fb3d3255efdc8e0fc387cbf1df9c6757c /application/palemoon/components/nsBrowserGlue.js
parentf4cc93fc9ee9059c44bb9bc28266b01397ede4a3 (diff)
downloadUXP-effff24825e50bd525892375e18cdaeb627f5855.tar
UXP-effff24825e50bd525892375e18cdaeb627f5855.tar.gz
UXP-effff24825e50bd525892375e18cdaeb627f5855.tar.lz
UXP-effff24825e50bd525892375e18cdaeb627f5855.tar.xz
UXP-effff24825e50bd525892375e18cdaeb627f5855.zip
Issue #1289 - Part 4: Update Pale Moon UI.
This swaps the UI choice to using the new boolean pref instead of enforcement level.
Diffstat (limited to 'application/palemoon/components/nsBrowserGlue.js')
-rw-r--r--application/palemoon/components/nsBrowserGlue.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/application/palemoon/components/nsBrowserGlue.js b/application/palemoon/components/nsBrowserGlue.js
index 01a133833..31a8bf40c 100644
--- a/application/palemoon/components/nsBrowserGlue.js
+++ b/application/palemoon/components/nsBrowserGlue.js
@@ -1198,7 +1198,7 @@ BrowserGlue.prototype = {
},
_migrateUI: function BG__migrateUI() {
- const UI_VERSION = 19;
+ const UI_VERSION = 20;
const BROWSER_DOCURL = "chrome://browser/content/browser.xul#";
let currentUIVersion = 0;
try {
@@ -1433,6 +1433,11 @@ BrowserGlue.prototype = {
}
#endif
+ if (currentUIVersion < 20) {
+ // HPKP change of UI preference; reset enforcement level
+ Services.prefs.clearUserPref("security.cert_pinning.enforcement_level");
+ }
+
// Update the migration version.
Services.prefs.setIntPref("browser.migration.version", UI_VERSION);
},