diff options
author | Basilisk-Dev <basiliskdev@protonmail.com> | 2022-08-19 09:01:25 -0400 |
---|---|---|
committer | Basilisk-Dev <basiliskdev@protonmail.com> | 2022-08-19 09:01:25 -0400 |
commit | 3a0791e93e5b480c261acb3b5b69a6b4eaaab071 (patch) | |
tree | ebdc807bd985c9324a9d434b69b1ddc3bd91ed0a | |
parent | 5103d4407ecde30f52f5f9d1fcf87823e9f1e38e (diff) | |
download | basilisk-3a0791e93e5b480c261acb3b5b69a6b4eaaab071.tar.gz |
Issue #23 - Clear decoding failure test flag
-rw-r--r-- | basilisk/components/nsBrowserGlue.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/basilisk/components/nsBrowserGlue.js b/basilisk/components/nsBrowserGlue.js index 516cab0..8406a9c 100644 --- a/basilisk/components/nsBrowserGlue.js +++ b/basilisk/components/nsBrowserGlue.js @@ -1524,7 +1524,7 @@ BrowserGlue.prototype = { }, _migrateUI: function() { - const UI_VERSION = 44; + const UI_VERSION = 45; const BROWSER_DOCURL = "chrome://browser/content/browser.xul"; let currentUIVersion; @@ -1867,6 +1867,11 @@ BrowserGlue.prototype = { } } + if (currentUIVersion < 45) { + // Clear hardware decoding failure flag to re-test. (UXP #1898) + Services.prefs.clearUserPref("media.hardware-video-decoding.failed"); + } + // Update the migration version. Services.prefs.setIntPref("browser.migration.version", UI_VERSION); }, |