[webkit-changes] [WebKit/WebKit] 1de8ff: Adopt unsafeForgeSpan() for Web Extension arguments.
Timothy Hatcher
noreply at github.com
Wed Oct 30 15:47:24 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1de8ffe151a71ac43691a8c3fca70992585af1ba
https://github.com/WebKit/WebKit/commit/1de8ffe151a71ac43691a8c3fca70992585af1ba
Author: Timothy Hatcher <timothy at apple.com>
Date: 2024-10-30 (Wed, 30 Oct 2024)
Changed paths:
M Source/WebKit/WebProcess/Extensions/Bindings/Scripts/CodeGeneratorExtensions.pm
Log Message:
-----------
Adopt unsafeForgeSpan() for Web Extension arguments.
https://webkit.org/b/282353
rdar://problem/138945425
Reviewed by Brian Weinstein.
Use `std::span` from `unsafeForgeSpan()` to make the arguments access in the generated code safer.
This allows us to drop `WTF_ALLOW_UNSAFE_BUFFER_USAGE_BEGIN` in these generated files.
* Source/WebKit/WebProcess/Extensions/Bindings/Scripts/CodeGeneratorExtensions.pm:
(_generateImplementationFile):
Canonical link: https://commits.webkit.org/285929@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