[webkit-changes] [WebKit/WebKit] 53d58f: Make asByteSpan() / asMutableByteSpan() work with ...
Chris Dumez
noreply at github.com
Wed Oct 30 07:35:09 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 53d58fbd7acfa1b6976ba1ffebddf1d76e973673
https://github.com/WebKit/WebKit/commit/53d58fbd7acfa1b6976ba1ffebddf1d76e973673
Author: Chris Dumez <cdumez at apple.com>
Date: 2024-10-30 (Wed, 30 Oct 2024)
Changed paths:
M Source/WTF/wtf/StdLibExtras.h
M Source/WTF/wtf/persistence/PersistentCoders.cpp
M Source/WebKit/Platform/IPC/DaemonCoders.h
M Source/WebKit/UIProcess/mac/LegacySessionStateCoding.cpp
M Tools/TestWebKitAPI/Tests/WTF/StdLibExtrasTests.cpp
Log Message:
-----------
Make asByteSpan() / asMutableByteSpan() work with input spans
https://bugs.webkit.org/show_bug.cgi?id=282212
Reviewed by Geoffrey Garen.
Make asByteSpan() / asMutableByteSpan() do what we'd expect if passed in a span.
It is risky otherwise.
* Source/WTF/wtf/StdLibExtras.h:
(WTF::unsafeForgeSpan):
(WTF::asByteSpan):
(WTF::asMutableByteSpan):
* Source/WTF/wtf/persistence/PersistentCoders.cpp:
(WTF::Persistence::decodeStringText):
* Source/WebKit/Platform/IPC/DaemonCoders.h:
(WebKit::Daemon::Coder<WTF::String>::decodeStringText):
* Source/WebKit/UIProcess/mac/LegacySessionStateCoding.cpp:
(WebKit::HistoryEntryDataDecoder::operator>>):
* Tools/TestWebKitAPI/Tests/WTF/StdLibExtrasTests.cpp:
(TestWebKitAPI::TEST(WTF_StdLibExtras, SpanReinterpretCast_DynamicExtent)):
(TestWebKitAPI::TEST(WTF_StdLibExtras, SpanReinterpretCast_NonDynamicExtent)):
Canonical link: https://commits.webkit.org/285902@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list