gecko-dev/dom/performance
Gerald Squelart c4a6f1bac7 Bug 1663382 - Remove dangerous ProfilerStringView::Data() - r=florian
`ProfilerStringView::Data()` would return a pointer to the start of the string, but there may not be a null terminator at the end!
To reduce the likelihood of misuses, that function has now been removed.
Instead, callers must now access the data through `AsSpan` or the `Span` conversion operator (which makes it easy to use with `NS_ConvertUTF16toUTF8` for example).

It was not an issue until now, because deserialized string would always be terminated when copied out of the profile buffer, but a following patch will add optimized code where the non-terminated string inside the buffer will be directly pointed at.

Differential Revision: https://phabricator.services.mozilla.com/D125027
2021-09-10 11:43:47 +00:00
..
tests Bug 1695328 - PerformanceObserver should throw TypeError instead of SyntaxError r=smaug 2021-03-01 21:45:59 +00:00
EventCounts.cpp Bug 1710682 - Make Event::GetEventName returns a char16_t r=smaug 2021-05-11 20:11:01 +00:00
EventCounts.h Bug 1667836 - Implement EventCounts Interface r=smaug 2021-02-09 18:54:48 +00:00
Performance.cpp Bug 1663382 - Remove dangerous ProfilerStringView::Data() - r=florian 2021-09-10 11:43:47 +00:00
Performance.h Bug 1667836 - Implement EventCounts Interface r=smaug 2021-02-09 18:54:48 +00:00
PerformanceEntry.cpp Bug 1667836 - Make performance entries may have different `should add entry` algorithm r=smaug 2021-02-09 18:54:46 +00:00
PerformanceEntry.h Bug 1667836 - Implement PerformanceEventTiming Interface r=smaug 2021-02-09 18:54:47 +00:00
PerformanceEventTiming.cpp Bug 1710682 - Make Event::GetEventName returns a char16_t r=smaug 2021-05-11 20:11:01 +00:00
PerformanceEventTiming.h Bug 1692213 - Use raw timestamp internally for PerformanceEventTiming r=smaug 2021-02-22 15:36:45 +00:00
PerformanceMainThread.cpp Bug 1708448 - Move property and element functions into js/public/PropertyAndElement.h. r=nbp 2021-07-13 11:52:42 +00:00
PerformanceMainThread.h Bug 1692213 - Use nsTArray for PerformanceEventTiming buffer instead of AutoTArray r=smaug 2021-02-16 14:42:34 +00:00
PerformanceMark.cpp
PerformanceMark.h
PerformanceMeasure.cpp
PerformanceMeasure.h
PerformanceNavigation.cpp
PerformanceNavigation.h
PerformanceNavigationTiming.cpp
PerformanceNavigationTiming.h Bug 1688941 - Enforce and document that mTimingData is always non-null. r=smaug 2021-01-27 19:24:19 +00:00
PerformanceObserver.cpp Bug 1725145 - header files fixes in the hybrid build env. r=valentin 2021-08-22 10:21:55 +00:00
PerformanceObserver.h
PerformanceObserverEntryList.cpp Bug 1688312 - Consider to use nsAtoms in PerformanceEntry, r=sefeng 2021-01-24 12:16:55 +00:00
PerformanceObserverEntryList.h
PerformancePaintTiming.cpp
PerformancePaintTiming.h
PerformanceResourceTiming.cpp Bug 1688941 - Enforce and document that mTimingData is always non-null. r=smaug 2021-01-27 19:24:19 +00:00
PerformanceResourceTiming.h Bug 1723050 - Part 21: Replace typedef by using in dom/performance/ r=smaug 2021-08-09 13:37:29 +00:00
PerformanceServerTiming.cpp
PerformanceServerTiming.h
PerformanceService.cpp
PerformanceService.h
PerformanceStorage.h
PerformanceStorageWorker.cpp Bug 1688941 - Enforce and document that mTimingData is always non-null. r=smaug 2021-01-27 19:24:19 +00:00
PerformanceStorageWorker.h
PerformanceTiming.cpp Bug 1685900 - Split internal and external contentPolicyType. r=ckerschb,smaug 2021-01-15 12:07:16 +00:00
PerformanceTiming.h Bug 1723050 - Part 21: Replace typedef by using in dom/performance/ r=smaug 2021-08-09 13:37:29 +00:00
PerformanceWorker.cpp
PerformanceWorker.h Bug 1667836 - Implement EventCounts Interface r=smaug 2021-02-09 18:54:48 +00:00
moz.build Bug 1667836 - Implement EventCounts Interface r=smaug 2021-02-09 18:54:48 +00:00