diff options
author | FranklinDM <mrmineshafter17@gmail.com> | 2023-04-06 23:22:50 +0800 |
---|---|---|
committer | FranklinDM <mrmineshafter17@gmail.com> | 2023-04-10 18:22:55 +0800 |
commit | 9e976ddf7f2591a8abf4b79baf58627939a7c5eb (patch) | |
tree | 481b67d375e2eae59319f3caa7a90adc2a92932a /xpcom | |
parent | ac1fd1133c7389996bb0586f052e0eabc984a648 (diff) | |
download | uxp-9e976ddf7f2591a8abf4b79baf58627939a7c5eb.tar.gz |
Issue #2053 - Part 5: Throw a DOMException instead of a JS exception for some errors
Diffstat (limited to 'xpcom')
-rw-r--r-- | xpcom/base/ErrorList.h | 10 | ||||
-rw-r--r-- | xpcom/base/nsError.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/xpcom/base/ErrorList.h b/xpcom/base/ErrorList.h index 980171cb92..8ec4ec3d09 100644 --- a/xpcom/base/ErrorList.h +++ b/xpcom/base/ErrorList.h @@ -984,6 +984,16 @@ #undef MODULE /* ======================================================================= */ + /* 42: NS_ERROR_MODULE_DOM_USER_TIMING */ + /* ======================================================================= */ +#define MODULE NS_ERROR_MODULE_DOM_USER_TIMING + ERROR(NS_ERROR_DOM_UT_UNKNOWN_MARK_NAME, FAILURE(1)), + ERROR(NS_ERROR_DOM_UT_INVALID_TIMING_ATTR, FAILURE(2)), + ERROR(NS_ERROR_DOM_UT_UNAVAILABLE_ATTR, FAILURE(3)), + ERROR(NS_ERROR_DOM_UT_UNAVAILABLE_GLOBAL_OBJECT, FAILURE(4)), +#undef MODULE + + /* ======================================================================= */ /* 51: NS_ERROR_MODULE_GENERAL */ /* ======================================================================= */ #define MODULE NS_ERROR_MODULE_GENERAL diff --git a/xpcom/base/nsError.h b/xpcom/base/nsError.h index 3743ecfbed..82d368e107 100644 --- a/xpcom/base/nsError.h +++ b/xpcom/base/nsError.h @@ -79,6 +79,7 @@ #define NS_ERROR_MODULE_DOM_ANIM 39 #define NS_ERROR_MODULE_DOM_PUSH 40 #define NS_ERROR_MODULE_DOM_MEDIA 41 +#define NS_ERROR_MODULE_DOM_USER_TIMING 42 /* NS_ERROR_MODULE_GENERAL should be used by modules that do not * care if return code values overlap. Callers of methods that |