diff options
author | Moonchild <moonchild@palemoon.org> | 2023-04-11 23:38:10 +0200 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-04-11 23:38:10 +0200 |
commit | 2f258b259fdbc124ce3d20b523f1508a186579e9 (patch) | |
tree | 9be3e168acb67aa1b64a35275a63477f61dcf1dc /dom | |
parent | c95e970df58fafc176cdeedac12c1f6199c301cd (diff) | |
download | uxp-2f258b259fdbc124ce3d20b523f1508a186579e9.tar.gz |
Issue #2053 - Follow-up: Make the default ResourceTimingBufferSize larger
Contrary to setting no limit by default, we're giving it a reasonable
default size to prevent runaway memory usage when websites just keep
recording ad infinitum.
Diffstat (limited to 'dom')
-rw-r--r-- | dom/performance/Performance.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/performance/Performance.h b/dom/performance/Performance.h index 1b2bb5586c..2108e1e394 100644 --- a/dom/performance/Performance.h +++ b/dom/performance/Performance.h @@ -171,7 +171,7 @@ protected: nsTArray<RefPtr<PerformanceEntry>> mResourceEntries; uint64_t mResourceTimingBufferSize; - static const uint64_t kDefaultResourceTimingBufferSize = 150; + static const uint64_t kDefaultResourceTimingBufferSize = 1500; bool mPendingNotificationObserversTask; RefPtr<PerformanceService> mPerformanceService; |