Bug 1877545 - Add a probe for whether or not a pre-existing profile existed when initting FirstStartup. data-review=jhirsch, r=rhelmer

Differential Revision: https://phabricator.services.mozilla.com/D201286
This commit is contained in:
Mike Conley
2024-03-05 20:24:15 +00:00
parent b7f9ff8718
commit 3f6bc7d41c
4 changed files with 69 additions and 6 deletions

View File

@@ -692,9 +692,7 @@ nsBrowserContentHandler.prototype = {
// tell needHomepageOverride to leave the milestone prefs alone when doing
// this check.
let override = needHomepageOverride(false /* updateMilestones */);
if (override == OVERRIDE_NEW_PROFILE) {
lazy.FirstStartup.init();
}
lazy.FirstStartup.init(override == OVERRIDE_NEW_PROFILE /* newProfile */);
}
var fileParam = cmdLine.handleFlagWithParam("file", false);