summaryrefslogtreecommitdiff
path: root/apps
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
parenta621951327b0c19c0c24dfd9fd973f7bd13ae68f (diff)
parentcfb9884423faf741de03c5fcc72bf9ac8c6ada4d (diff)
downloadaura-central-878ab758d5d4c1ef7badf2bc20ebc7c67dc2165b.tar.gz
Merge branch 'TRUNK' into ARE-5.0
Diffstat (limited to 'apps')
-rw-r--r--apps/mail/modules/mailMigrator.js7
-rw-r--r--apps/navigator/components/nsNavigatorGlue.js23
2 files changed, 17 insertions, 13 deletions
diff --git a/apps/mail/modules/mailMigrator.js b/apps/mail/modules/mailMigrator.js
index 645922227..151735221 100644
--- a/apps/mail/modules/mailMigrator.js
+++ b/apps/mail/modules/mailMigrator.js
@@ -102,7 +102,7 @@ var MailMigrator = {
_migrateUI: function() {
// The code for this was ported from
// mozilla/browser/components/nsBrowserGlue.js
- const UI_VERSION = 17;
+ const UI_VERSION = 19;
const MESSENGER_DOCURL = "chrome://messenger/content/messenger.xul";
const UI_VERSION_PREF = "mail.ui-rdf.version";
let currentUIVersion = 0;
@@ -413,6 +413,11 @@ var MailMigrator = {
Services.prefs.clearUserPref("layers.acceleration.force-enabled");
}
+ if (currentUIVersion < 19) {
+ // Clear hardware decoding failure flag to re-test.
+ Services.prefs.clearUserPref("media.hardware-video-decoding.failed");
+ }
+
// Update the migration version.
Services.prefs.setIntPref(UI_VERSION_PREF, UI_VERSION);
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.