summaryrefslogtreecommitdiff
path: root/xpcom
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2023-04-06 23:22:50 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2023-04-10 18:22:55 +0800
commit9e976ddf7f2591a8abf4b79baf58627939a7c5eb (patch)
tree481b67d375e2eae59319f3caa7a90adc2a92932a /xpcom
parentac1fd1133c7389996bb0586f052e0eabc984a648 (diff)
downloaduxp-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.h10
-rw-r--r--xpcom/base/nsError.h1
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