Open Bug 812089 Opened 12 years ago Updated 5 months ago

Component.results does not list nsresults deried from NSPR/NSS PRErrorCodes

Categories

(Core :: XPConnect, enhancement)

enhancement

Tracking

()

REOPENED

People

(Reporter: briansmith, Unassigned)

References

(Blocks 1 open bug)

Details

PSM maps SEC_* and SSL_* PRErrorCodes to nsresults using a mathematical formula NS_ERROR_GENERATE(FAILURE, NS_ERROR_MODULE_SECURITY, -x) where x is the PRErrorCode.

We should expose all of these error codes through Component.results so that JS-based modules (e.g. toolkit/identity/*.js) and JS-based tests can refer to them using their symbolic names. I suggest we expose them as NS_ERROR_<name> where <name> is the PRErrorCode name (e.g. NS_ERROR_SEC_ERROR_UNTRUSTED_ISSUER, for SEC_ERROR_UNTRUSTED_ISSUER).
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
Status: RESOLVED → REOPENED
Resolution: INACTIVE → ---
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.