Bug 1403402 - Should not migrate profile for a fresh install, r?MattN draft
authorFischer.json <fischer.json@gmail.com>
Thu, 28 Sep 2017 11:44:59 +0800
changeset 675283 a19dac20b482a13e7b6d94303b7c3d2d8f470321
parent 671566 e1f660fc493bc4bf2f91b6df94bc98e8e3840c42
child 734567 d60087a8f1f48a112bfcbf06439b692f151edce7
push id83092
push userbmo:fliu@mozilla.com
push dateThu, 05 Oct 2017 03:25:08 +0000
reviewersMattN
bugs1403402
milestone58.0a1
Bug 1403402 - Should not migrate profile for a fresh install, r?MattN MozReview-Commit-ID: D9uMUXO2PV5
toolkit/xre/nsAppRunner.cpp
--- a/toolkit/xre/nsAppRunner.cpp
+++ b/toolkit/xre/nsAppRunner.cpp
@@ -2585,17 +2585,19 @@ SelectProfile(nsIProfileLock* *aResult, 
     deProfile->GetName(profileName);
     if (profileName.EqualsLiteral("dev-edition-default")) {
       count = 0;
     }
   }
 #endif
 
   if (!count) {
-    gDoMigration = true;
+    // For a fresh install, we would like to let users decide
+    // to do profile migration on their own later after using.
+    gDoMigration = false;
     gDoProfileReset = false;
 
     // create a default profile
     nsCOMPtr<nsIToolkitProfile> profile;
     nsresult rv = aProfileSvc->CreateProfile(nullptr, // choose a default dir for us
 #ifdef MOZ_DEV_EDITION
                                              NS_LITERAL_CSTRING("dev-edition-default"),
 #else