diff options
author | Moonchild <moonchild@palemoon.org> | 2023-04-13 17:22:41 +0200 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-04-13 17:22:41 +0200 |
commit | eb5c4089913459e1c2de5326a0bc528dc488d67d (patch) | |
tree | 108a87d351d434986779c3bd14be8385a335b844 /xpcom | |
parent | 69868a9ad6db1104a0859d1560ae80d65c19bab5 (diff) | |
download | uxp-eb5c4089913459e1c2de5326a0bc528dc488d67d.tar.gz |
Issue #2053 - Follow-up: Clear the performance entries buffer if full.
Also enlarged the buffer to 16k entries which should be enough for all
legitimate use of performance measurements (and then some).
This throws a quota exceeded error if sites want to record more entries
into the buffer and just clears it (similar to Moz's behaviour under
memory pressure) ready for fresh entries to be added again.
Diffstat (limited to 'xpcom')
-rw-r--r-- | xpcom/base/ErrorList.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xpcom/base/ErrorList.h b/xpcom/base/ErrorList.h index 8ec4ec3d09..a99d0e83fc 100644 --- a/xpcom/base/ErrorList.h +++ b/xpcom/base/ErrorList.h @@ -991,6 +991,7 @@ 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)), + ERROR(NS_ERROR_DOM_UT_QUOTA_ERR, FAILURE(5)), #undef MODULE /* ======================================================================= */ |