API to quit firefox process with an exit code

RESOLVED WONTFIX

Status

()

Toolkit
Startup and Profile System
RESOLVED WONTFIX
7 years ago
7 years ago

People

(Reporter: irakli, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

At the moment there seems to be no way of quit app with `1` exit code it's always `0` no matter which flag was passed to the nsIAppStartup.quit  https://developer.mozilla.org/en/NsIAppStartup#quit%28%29

Also I could not find any other interface that would allow doing this. Since this information is required by cfx we have a very unpleasant workaround:

https://github.com/mozilla/addon-sdk/blob/master/python-lib/cuddlefish/app-extension/components/harness.js#L420-450

that adds lot's of unnecessary complexity (code duplication etc..).

Would be nice if we could fix this on the platform side instead either by adding a special flag that can be passed to `nsIAppStartup.quit` to exit process with a non `0` exit code or by completely new API.
Moving this over to the platform (we might want an add-ons SDK bug to depend on this).

Could you give some use cases where we need this? I don't think it'd be terribly difficult to implement but needs decent reasons for it
Component: General → Startup and Profile System
Product: Add-on SDK → Toolkit
QA Contact: general → startup

Comment 2

7 years ago
All of our existing tests just use TEST-UNEXPECTED-FAIL as the failure marker: why can't this code do the same? I really don't want to add more complexity here :-(

Comment 3

7 years ago
Calling this WONTFIX for now, please reopen if absolutely necessary.
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.