Bug 1249608 - Don't run UI migration steps with new profiles. Follow up: Add missing closing parenthesis. r=dao over IRC. CLOSED TREE
authorSebastian Hengst <archaeopteryx@coole-files.de>
Sat, 20 Feb 2016 15:15:01 +0100
changeset 332765 eff6731606da854ee031a06a64191484c09e72e4
parent 332764 ca83a163091aff314159011e639520f25daa3a99
child 332766 889096db9c1b362f654d0610b866e5be5d02912e
push id11232
push useratolfsen@mozilla.com
push dateSun, 21 Feb 2016 12:02:10 +0000
reviewersdao
bugs1249608
milestone47.0a1
Bug 1249608 - Don't run UI migration steps with new profiles. Follow up: Add missing closing parenthesis. r=dao over IRC. CLOSED TREE
browser/components/nsBrowserGlue.js
--- a/browser/components/nsBrowserGlue.js
+++ b/browser/components/nsBrowserGlue.js
@@ -1805,17 +1805,17 @@ BrowserGlue.prototype = {
     notification.persistence = -1; // Until user closes it
   },
 
   _migrateUI: function BG__migrateUI() {
     const UI_VERSION = 36;
     const BROWSER_DOCURL = "chrome://browser/content/browser.xul";
 
     let currentUIVersion;
-    if (Services.prefs.prefHasUserValue("browser.migration.version") {
+    if (Services.prefs.prefHasUserValue("browser.migration.version")) {
       currentUIVersion = Services.prefs.getIntPref("browser.migration.version");
     } else {
       // This is a new profile, nothing to migrate.
       Services.prefs.setIntPref("browser.migration.version", UI_VERSION);
       return;
     }
 
     if (currentUIVersion >= UI_VERSION)