Readonly
crashGet the enabled status of the crash reporter.
Get or set the path on the local system to which minidumps will be written when a crash happens.
NS_ERROR_NOT_INITIALIZED if crash reporting is not initialized
Get or set the URL to which crash reports will be submitted. Only https and http URLs are allowed, as the submission is handled by OS-native networking libraries.
NS_ERROR_NOT_INITIALIZED if crash reporting is not initialized
NS_ERROR_INVALID_ARG on set if a non-http(s) URL is assigned
NS_ERROR_FAILURE on get if no URL is set
User preference for submitting crash reports.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Add some extra data to be submitted with a crash report.
NS_ERROR_NOT_INITIALIZED if crash reporting not initialized
NS_ERROR_INVALID_ARG if key contains an invalid value or data contains invalid characters. Invalid character for data is '\0'.
Name of a known crash annotation constant.
Data to be added.
Append some data to the "Notes" field, to be submitted with a crash report. Unlike annotateCrashReport, this method will append to existing data.
NS_ERROR_NOT_INITIALIZED if crash reporting not initialized
NS_ERROR_INVALID_ARG if data contains invalid characters. The only invalid character is '\0'.
Data to be added.
Checks if an annotation is allowlisted for inclusion in the crash ping.
True if the specified value is a valid annotation and can be included in the crash ping, false otherwise.
NS_ERROR_INVALID_ARG if key contains an invalid value.
Register a given memory range to be included in the crash report.
NS_ERROR_NOT_INITIALIZED if crash reporting not initialized
NS_ERROR_NOT_IMPLEMENTED if unavailable on the current OS
The starting address for the bytes.
The number of bytes to include.
Write a minidump immediately, with the user-supplied exception information. This is implemented on Windows only, because SEH (structured exception handling) exists on Windows only.
EXCEPTION_INFO* provided by Window's SEH
Generated using TypeDoc
Provides access to crash reporting functionality.
Status
UNSTABLE - This interface is not frozen and will probably change in future releases.