[Mypal] Clear user prefs for AbortController on migration...

This commit is contained in:
Fedor 2020-08-12 10:22:20 +03:00
parent b0d7f0b89b
commit e8a344d880
1 changed files with 8 additions and 1 deletions

View File

@ -1201,7 +1201,7 @@ BrowserGlue.prototype = {
},
_migrateUI: function() {
const UI_VERSION = 23;
const UI_VERSION = 24;
const BROWSER_DOCURL = "chrome://browser/content/browser.xul#";
let currentUIVersion = 0;
try {
@ -1447,6 +1447,13 @@ BrowserGlue.prototype = {
Services.prefs.clearUserPref("layers.acceleration.disabled");
Services.prefs.clearUserPref("layers.acceleration.force-enabled");
}
if (currentUIVersion < 24) {
// AbortController's worker signalling was fixed so reset user prefs that
// might have been set as workaround for web compat issues in the meantime.
Services.prefs.clearUserPref("dom.abortController.enabled");
}
// Clear out dirty storage
if (this._dirty)