summaryrefslogtreecommitdiffstats
path: root/components/nsBrowserGlue.js
diff options
context:
space:
mode:
authorThomas Groman <tgroman@nuegia.net>2019-12-16 21:30:30 -0800
committerThomas Groman <tgroman@nuegia.net>2019-12-16 21:30:30 -0800
commite6e22e652391ca01634a42490080361c1de7f322 (patch)
tree0c97e6a5684dff9ce943701f78dc48c3933a95b3 /components/nsBrowserGlue.js
parenta50d5373404363e0f7ad98333ad29cf77d672e88 (diff)
downloadwebbrowser-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/nsBrowserGlue.js')
-rw-r--r--components/nsBrowserGlue.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/components/nsBrowserGlue.js b/components/nsBrowserGlue.js
index 01a1338..b978eac 100644
--- a/components/nsBrowserGlue.js
+++ b/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.clearUserPerf("security.cert_pinning.eforcement_level");
+ }
+
// Update the migration version.
Services.prefs.setIntPref("browser.migration.version", UI_VERSION);
},