Closed Bug 716521 Opened 13 years ago Closed 13 years ago

cfx is not saving the prefs if one exits with ctr+c

Categories

(Add-on SDK Graveyard :: Documentation, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: gkrizsanits, Unassigned)

Details

I tried to test simple prefs api, and it was really confusing that while I tried to test my addon manually with cfx run, between the sessions the prefs were not saved. The reason is that when you exit cfx by pressing crt+c cfx simply kills firefox not giving it a chance to save the prefs. This is really annoying since the developers first experience with the api will be with cfx run, and the first impression is that it does not work. Until there is no workaround for it I think we should mention it in the docs and not leaving developers in the dark with this behavior.
Gabor, everytime you run cfx run with no flags, cfx creates a new profile, so none of the preferences will be persisted anyway. You can pass in a profile with some flag to cfx, which will run with that profile, and the prefs should persist.

I think Will added a release note to that effect.

Mossop is probably going to file a platform bug to get us to sync prefereces to file more often so the ctrl-c method of exiting would be less painful.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
That bug is bug 717694
cfx run -p <profiledir>, e.g.
cfx run -p ../TestProfile/
You need to log in before you can comment on or make changes to this bug.