summaryrefslogtreecommitdiff
path: root/apps/navigator/components/nsNavigatorGlue.js
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2022-05-16 21:31:06 -0500
committerMatt A. Tobin <email@mattatobin.com>2022-05-16 21:31:06 -0500
commitd4ee07aad33c1e6817f558c46e849a7f0143bda2 (patch)
tree0a209ed781f33f34cc13b239cb80c8ea38bdc89e /apps/navigator/components/nsNavigatorGlue.js
parent380bb35749e6353371c4af615f0713418240ab63 (diff)
downloadaura-central-d4ee07aad33c1e6817f558c46e849a7f0143bda2.tar.gz
[Apps:*] Update UI Revision code to re-test the hardware decoding failure flag due to Moonchild's continued incompetence which seems to be going further and further back.
Diffstat (limited to 'apps/navigator/components/nsNavigatorGlue.js')
-rw-r--r--apps/navigator/components/nsNavigatorGlue.js23
1 files changed, 11 insertions, 12 deletions
diff --git a/apps/navigator/components/nsNavigatorGlue.js b/apps/navigator/components/nsNavigatorGlue.js
index a64e47394..19bbf8000 100644
--- a/apps/navigator/components/nsNavigatorGlue.js
+++ b/apps/navigator/components/nsNavigatorGlue.js
@@ -366,26 +366,25 @@ NavigatorGlue.prototype = {
_migrateUI: function()
{
- const UI_VERSION = 8;
+ const PREF_REVISION = "app.ui.revision";
+ const UI_REVISION = 1;
- // If the pref is not set this is a new or pre SeaMonkey 2.49 profile.
- // We can't tell so we just run migration with version 0.
- let currentUIVersion = 0;
+ let currentRevision = Services.prefs.getIntPref(PREF_REVISION, 0);
- if (Services.prefs.prefHasUserValue("suite.migration.version")) {
- currentUIVersion = Services.prefs.getIntPref("suite.migration.version");
+ if (currentRevision >= UI_REVISION) {
+ return;
}
- if (currentUIVersion >= UI_VERSION)
- return;
+ if (currentRevision < 1) {
+ // Clear obsolete preference
+ Services.prefs.clearUserPref("suite.migration.version");
- // Migration of disabled safebrowsing-phishing setting after pref renaming.
- if (currentUIVersion < 8) {
- // Shit to do
+ // Clear hardware decoding failure flag to re-test.
+ Services.prefs.clearUserPref("media.hardware-video-decoding.failed");
}
// Update the migration version.
- Services.prefs.setIntPref("suite.migration.version", UI_VERSION);
+ Services.prefs.setIntPref(PREF_REVISION, UI_REVISION);
},
// Copies additional profile files from the default profile tho the current profile.