Bug 1116097 - Selected profile not remembered in profiles.ini (regression) r=Neil
authorPhilip Chee <philip.chee@gmail.com>
Mon, 19 Jan 2015 23:51:11 +0800
changeset 31124 f8cb73798580a54d254beeeb226bb3d9398de281
parent 31123 941c5716f2e1784030c48364fc85ee0947031a21
child 31125 075d3ffc4d28c1bb15d6f582d2ac744d9ea2442c
push id1
push userclokep@gmail.com
push dateMon, 07 May 2018 22:45:56 +0000
treeherdercomm-esr60@57eacde5ef40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersNeil
bugs1116097
Bug 1116097 - Selected profile not remembered in profiles.ini (regression) r=Neil a=IanN for a=comm-aurora a=comm-beta a=comm-release CLOSED TREE
suite/common/profile/profileSelection.js
--- a/suite/common/profile/profileSelection.js
+++ b/suite/common/profile/profileSelection.js
@@ -102,16 +102,17 @@ function AcceptDialog()
     if (selected.profile.rootDir.equals(profD) &&
         selected.profile.localDir.equals(profLD))
       return true;
   }
 
   try {
     var profileLock = selected.profile.lock({});
     gProfileService.selectedProfile = selected.profile;
+    gProfileService.defaultProfile = selected.profile;
     gProfileService.flush();
     if (gDialogParams.objects) {
       gDialogParams.objects.insertElementAt(profileLock, 0, false);
       gProfileService.startOffline = document.getElementById("offlineState").checked;
       gDialogParams.SetInt(0, 1);
       gDialogParams.SetString(0, selected.profile.name);
       return true;
     }