Closed Bug 302701 Opened 19 years ago Closed 19 years ago

Firefox should not restart during launch

Categories

(Toolkit :: Add-ons Manager, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 271613

People

(Reporter: jruderman, Unassigned)

Details

When I switch from one nightly build to another (in different directories), Firefox restarts at least once before displaying a browser window. While this is mostly invisible on Windows, on Mac it causes the Dock icon to stop bouncing, disappear, and reappear. It also prevents the Firefox application from getting focus as soon as it starts, at least when launched from the Dock. Why does Firefox restart during launch?
Restarts are due to verifying extensions and extension component directories. *** This bug has been marked as a duplicate of 271613 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
I know this bug will eventually be fixed by the duped-to bug, but in the meantime, what about moving the |CreateHiddenWindow()| call down into the |if (!upgraded && !needsRestart)| block? On Mac, it seems that any call to the create a window or query window/screen info kicks off some sort of 'startup' process, which leads to the app icon being displayed in the dock, bouncing. By moving |CreateHiddenWindow| down into that block, the bouncing dock icon only appears after all of the XPCOM restarts have completed. I experimented with this briefly this past weekend, and didn't notice any side effects. The 'upgrade extensions' dialog came up just fine (if an upgrade was necessary), as did the profile manager.
The hidden window used to be used for the JS component loading JSContext, but that's no longer the case. We do have a lot of code which makes assumptions about when the hidden window is available and what can be done with it.
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.