Fix some inefficient uses of SharedBuffer.
Created attachment 431023 [details] Patch
Created attachment 431024 [details] Patch
Created attachment 431025 [details] Patch
Comment on attachment 431025 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=431025&action=review > Source/WebCore/platform/SharedBuffer.h:103 > + Vector<uint8_t> dataAsVector() { return { data(), size() }; } This should have the word "copy" in its name. > Source/WebCore/platform/SharedBuffer.h:188 > + void forEachSegment(const Function<void(const uint8_t*, size_t)>&) const; This should use a Span as the argument. > Source/WebCore/platform/SharedBuffer.h:189 > + bool startsWith(const uint8_t* prefix, size_t prefixSize) const; This should use a Span as the argument.
Created attachment 431041 [details] Patch
Created attachment 431042 [details] Patch
Found 1 new test failure: imported/w3c/web-platform-tests/navigation-timing/nav2_test_attributes_values.html
Committed r278702 (238674@main): <https://commits.webkit.org/238674@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 431042 [details].
<rdar://problem/79140035>