Bug 1116097 - Selected profile not remembered in profiles.ini (regression) r=Neil a=IanN a=comm-aurora a=comm-beta CLOSED TREE
authorPhilip Chee <philip.chee@gmail.com>
Mon, 19 Jan 2015 23:51:11 +0800
changeset 21636 db00efe0aa4c39459ebfb102f935b0ae06698027
parent 21635 e9001d508454d7bbbe5d43ee3dcbd271a90104a7
child 21637 ce25f6b1662d34d3bbee7b9763a4d39b914b0d91
push id1305
push usermbanner@mozilla.com
push dateMon, 23 Feb 2015 19:48:12 +0000
treeherdercomm-beta@3ae4f13858fd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersNeil, IanN, comm-aurora, comm-beta
bugs1116097
Bug 1116097 - Selected profile not remembered in profiles.ini (regression) r=Neil a=IanN a=comm-aurora a=comm-beta 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;
     }