summaryrefslogtreecommitdiff
path: root/apps/navigator
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2022-06-07 20:20:19 -0500
committerMatt A. Tobin <email@mattatobin.com>2022-06-07 20:20:19 -0500
commit878ab758d5d4c1ef7badf2bc20ebc7c67dc2165b (patch)
tree3683d6df35e3618c0e7b456de7c749ca4c8c21a6 /apps/navigator
parenta621951327b0c19c0c24dfd9fd973f7bd13ae68f (diff)
parentcfb9884423faf741de03c5fcc72bf9ac8c6ada4d (diff)
downloadaura-central-878ab758d5d4c1ef7badf2bc20ebc7c67dc2165b.tar.gz
Merge branch 'TRUNK' into ARE-5.0
Diffstat (limited to 'apps/navigator')
-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.