When selecting a profile in the Profile Manager, mark it with Default=1 (bug 1089694). r=bsmedberg
authorPanos Astithas <past@mozilla.com>
Mon, 27 Oct 2014 18:41:09 +0200
changeset 212508 df5af1c5126438acd76db1842e503fa6b8a58d2f
parent 212507 b0956a9f57a9e9679056faefdf3f093aecef1a37
child 212509 a06771fa469da5cec3c4421dec94b5aaaf1e6f62
push id27717
push userkwierso@gmail.com
push dateTue, 28 Oct 2014 00:49:29 +0000
treeherdermozilla-central@a255a234946e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs1089694
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
When selecting a profile in the Profile Manager, mark it with Default=1 (bug 1089694). r=bsmedberg
toolkit/profile/content/profileSelection.js
--- a/toolkit/profile/content/profileSelection.js
+++ b/toolkit/profile/content/profileSelection.js
@@ -97,16 +97,17 @@ function acceptDialog()
       gProfileManagerBundle.getFormattedString("profileLocked2", [appName, selectedProfile.profile.name, appName]);
     Services.prompt.alert(window, lockedTitle, locked);
 
     return false;
   }
   gDialogParams.objects.insertElementAt(profileLock.nsIProfileLock, 0, false);
 
   gProfileService.selectedProfile = selectedProfile.profile;
+  gProfileService.defaultProfile = selectedProfile.profile;
   updateStartupPrefs();
 
   gDialogParams.SetInt(0, 1);
 
   gDialogParams.SetString(0, selectedProfile.profile.name);
 
   return true;
 }