gecko-dev/dom/reporting
Gerald Squelart 782cf5d3ad Bug 1657033 - Use Span<const char> in JSONWriter - r=froydnj
In most situations, JSONWriter users already know string lengths (either directly, or through `nsCString` and friends), so we should keep this information through JSONWriter and not recompute it again.
This also allows using JSONWriter with sub-strings (e.g., from a bigger buffer), without having to create null-terminated strings.

Public JSONWriter functions have overloads that accept literal strings.

Differential Revision: https://phabricator.services.mozilla.com/D86192
2020-09-14 02:33:20 +00:00
..
tests Bug 1654553 - fix browser chrome tests to support Object.is instead of ==. r=gbrown,preferences-reviewers,Gijs,rpl 2020-07-27 17:02:35 +00:00
CrashReport.cpp Bug 1657033 - Use Span<const char> in JSONWriter - r=froydnj 2020-09-14 02:33:20 +00:00
CrashReport.h
DeprecationReportBody.cpp Bug 1657033 - Use Span<const char> in JSONWriter - r=froydnj 2020-09-14 02:33:20 +00:00
DeprecationReportBody.h
EndpointForReportChild.cpp
EndpointForReportChild.h
EndpointForReportParent.cpp
EndpointForReportParent.h
FeaturePolicyViolationReportBody.cpp Bug 1657033 - Use Span<const char> in JSONWriter - r=froydnj 2020-09-14 02:33:20 +00:00
FeaturePolicyViolationReportBody.h
PEndpointForReport.ipdl
Report.cpp
Report.h Bug 1653229 - Remove unnecessary includes for BindingUtils.h. r=jgilbert 2020-07-22 15:12:10 +00:00
ReportBody.cpp
ReportBody.h Bug 1653229 - Remove unnecessary includes for BindingUtils.h. r=jgilbert 2020-07-22 15:12:10 +00:00
ReportDeliver.cpp Bug 1657033 - Use Span<const char> in JSONWriter - r=froydnj 2020-09-14 02:33:20 +00:00
ReportDeliver.h
ReportingHeader.cpp Bug 1656359 - eliminate needless string flattening when calling JS_ParseJSON; r=peterv 2020-08-04 14:17:37 +00:00
ReportingHeader.h
ReportingObserver.cpp Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj 2020-08-04 11:27:07 +00:00
ReportingObserver.h Bug 1653229 - Remove unnecessary includes for BindingUtils.h. r=jgilbert 2020-07-22 15:12:10 +00:00
ReportingUtils.cpp
ReportingUtils.h
TestingDeprecatedInterface.cpp
TestingDeprecatedInterface.h Bug 1653229 - Remove unnecessary includes for BindingUtils.h. r=jgilbert 2020-07-22 15:12:10 +00:00
moz.build