diff --git a/dom/performance/Performance.cpp b/dom/performance/Performance.cpp index acbdc55e1d91..3c19887908db 100644 --- a/dom/performance/Performance.cpp +++ b/dom/performance/Performance.cpp @@ -430,7 +430,7 @@ void Performance::InsertResourceEntry(PerformanceEntry* aEntry) { MOZ_ASSERT(aEntry); - MOZ_ASSERT(mResourceEntries.Length() < mResourceTimingBufferSize); + MOZ_ASSERT(mResourceEntries.Length() <= mResourceTimingBufferSize); // We won't add an entry when 'privacy.resistFingerprint' is true. if (nsContentUtils::ShouldResistFingerprinting()) { diff --git a/dom/performance/PerformanceWorker.h b/dom/performance/PerformanceWorker.h index 2a632975fbf7..86faa68a951e 100644 --- a/dom/performance/PerformanceWorker.h +++ b/dom/performance/PerformanceWorker.h @@ -68,7 +68,7 @@ protected: void DispatchBufferFullEvent() override { - MOZ_CRASH("This should not be called on workers."); + // Nothing to do here. See bug 1432758. } private: