зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1388611 - Update mProfileName after a profile reset to handle multiple consecutive resets. r=Dolske
Follow-up to bug 1122124 to ensure `SaveWordToEnvIfUnset("XRE_PROFILE_NAME", mProfileName);` saves the updated profile name after reset takes the old profiles name. MozReview-Commit-ID: MTJAQUKktM --HG-- extra : rebase_source : 4cb6e762898c3dd459f6ef4049687cd1e4170558
This commit is contained in:
Родитель
41c0b98adf
Коммит
e92a849121
|
@ -4455,6 +4455,7 @@ XREMain::XRE_mainRun()
|
|||
rv = GetCurrentProfile(mProfileSvc, mProfD, getter_AddRefs(newProfile));
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
newProfile->SetName(gResetOldProfileName);
|
||||
mProfileName.Assign(gResetOldProfileName);
|
||||
// Set the new profile as the default after we're done cleaning up the old profile,
|
||||
// iff that profile was already the default
|
||||
if (profileWasSelected) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче