Bug 1312406 and bug 1255361 - part 2: remove tab groups backup, r=Dolske

MozReview-Commit-ID: 96AFjsXE1w0

--HG--
extra : rebase_source : 43089420551d75274a99a0b663b193778cfcf52d
This commit is contained in:
Gijs Kruitbosch 2016-11-01 16:12:19 +00:00
Родитель dc8d50ed3e
Коммит 8151f40902
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -1773,7 +1773,7 @@ BrowserGlue.prototype = {
},
_migrateUI: function BG__migrateUI() {
const UI_VERSION = 41;
const UI_VERSION = 42;
const BROWSER_DOCURL = "chrome://browser/content/browser.xul";
let currentUIVersion;
@ -2101,6 +2101,12 @@ BrowserGlue.prototype = {
Preferences.resetBranch("loop.");
}
if (currentUIVersion < 42) {
let backupFile = Services.dirsvc.get("ProfD", Ci.nsIFile);
backupFile.append("tabgroups-session-backup.json");
OS.File.remove(backupFile.path, {ignoreAbsent: true}).catch(ex => Cu.reportError(ex));
}
// Update the migration version.
Services.prefs.setIntPref("browser.migration.version", UI_VERSION);
},