Closed Bug 1581002 Opened 3 months ago Closed 3 months ago

Installer should pass `-first-startup` flag to Firefox


(Toolkit :: NSIS Installer, enhancement)

Not set



Tracking Status
firefox71 --- fixed


(Reporter: rhelmer, Assigned: rhelmer)


(Blocks 1 open bug)



(1 file)

Bug 1576507 added a FirstStartup service, which is used to signal to Firefox that it can take some time for perf-tuning, downloading patches and experiments via Normandy, etc. before the UI is ready:

The reasoning behind this approach is that, since the installer invokes Firefox with ExecAndWaitForInputIdle, the installer progress bar will still be displayed until these initial first-startup tasks are completed. The user should not perceive any delay (or rather, any delay would appear to be a small part at the end of the install process, rather than a delay in the first startup of Firefox).

Currently FirstStartup has a hard 5-second time-out, so it will not drag the installation experience on indefinitely.

I tested that this works using the full installer:

  1. download installer from try run:
  2. Run Firefox (from installer) and load about:telemetry

firstStartup.statusCode should be set, to either 3 (SUCCESS) or 2 (TIMEOUT)

I attempted to test the stub installer, but couldn't figure out how to get it to run with my unsigned build from (bug 1580992) or my local server (not sure why). However, the way -first-startup is passed uses exactly the same NSIS macro (ExecAndWaitForInputIdle) in both installers, so I am confident that it will work once it's part of the signed Nightly builds.

Pushed by
pass -first-startup flag to Firefox from stub and normal intallers r=mhowell
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.