Closed Bug 241712 Opened 21 years ago Closed 21 years ago

Need an XP way to restart the app

Categories

(Toolkit :: Startup and Profile System, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla1.7

People

(Reporter: bugs, Assigned: benjamin)

References

Details

(Whiteboard: fixed-aviary1.0)

My extension manager mismatch checking invokes a modal UI during startup if there are extensions/themes/etc that are incompatible with the starting version of Firefox. In this case all extensions are disabled and new versions are installed. This operation requires the browser to restart. As a result I need the startup code to call into me, and depending on the result, restart the app. I have exposed a method on nsIExtensionManager that should be called after profile start: unsigned short checkForMismatches(); which returns either nsIExtensionManager::MISMATCH_RESULT_OK if no incompatibilities were discovered and the app can continue starting, or nsIExtensionManager::MISMATCH_RESULT_RESTART if the UI was presented and a restart is required.
It just occurred to me that I should just return true or false. false = no mismatches, carry on starting. true = mismatches, restart. now my method looks like this: boolean checkForMismatches();
This is in on branch, not on trunk.
Flags: blocking0.9+
Priority: -- → P1
Target Milestone: --- → Firefox0.9
This is not quite done... we need a solution for OS X still. execv doesn't seem to work inside bundles.
I checked in a fix using NSTask for MacOS X.
OK, the Big Three all work now. Marking fixed.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Whiteboard: fixed-aviary1.0
Status: RESOLVED → VERIFIED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.