Bug 1260460 - reset user's restore on demand preference since we're removing it from the UI. r=mconley

MozReview-Commit-ID: DHqSTh18wQu
This commit is contained in:
Felipe Gomes 2016-04-01 18:22:36 -03:00
Родитель 748a42f056
Коммит b88e06345b
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -1804,7 +1804,7 @@ BrowserGlue.prototype = {
},
_migrateUI: function BG__migrateUI() {
const UI_VERSION = 36;
const UI_VERSION = 37;
const BROWSER_DOCURL = "chrome://browser/content/browser.xul";
let currentUIVersion;
@ -2166,6 +2166,10 @@ BrowserGlue.prototype = {
"hidden");
}
if (currentVersion < 37) {
Services.prefs.clearUserPref("browser.sessionstore.restore_on_demand");
}
// Update the migration version.
Services.prefs.setIntPref("browser.migration.version", UI_VERSION);
},