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)
Toolkit
Startup and Profile System
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.
Reporter | ||
Comment 1•21 years ago
|
||
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();
Reporter | ||
Comment 2•21 years ago
|
||
This is in on branch, not on trunk.
Flags: blocking0.9+
Priority: -- → P1
Target Milestone: --- → Firefox0.9
Reporter | ||
Comment 3•21 years ago
|
||
This is not quite done... we need a solution for OS X still. execv doesn't seem
to work inside bundles.
Reporter | ||
Comment 4•21 years ago
|
||
I checked in a fix using NSTask for MacOS X.
Assignee | ||
Comment 5•21 years ago
|
||
OK, the Big Three all work now. Marking fixed.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•21 years ago
|
Whiteboard: fixed-aviary1.0
Assignee | ||
Updated•19 years ago
|
Status: RESOLVED → VERIFIED
Updated•16 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•