Only use WKKeyedCoder for encoding when secure coding class is not specified#33412
Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom Sep 12, 2024
Conversation
Collaborator
|
EWS run on previous version of this PR (hash 5ef63a5) Details |
5ef63a5 to
efff52a
Compare
Collaborator
|
EWS run on previous version of this PR (hash efff52a) Details |
efff52a to
6d969a9
Compare
Collaborator
|
EWS run on previous version of this PR (hash 6d969a9) Details |
6d969a9 to
5ed8818
Compare
Collaborator
|
EWS run on previous version of this PR (hash 5ed8818) Details |
Contributor
|
Typo: Avoing -> Avoid |
5ed8818 to
6f69d02
Compare
Collaborator
|
EWS run on previous version of this PR (hash 6f69d02) Details
|
Contributor
Author
Fixed! |
6f69d02 to
cd8e960
Compare
Collaborator
|
EWS run on previous version of this PR (hash cd8e960) Details
|
Collaborator
|
EWS run on previous version of this PR (hash fe8d3cc) Details
|
fe8d3cc to
a1e6415
Compare
Collaborator
|
EWS run on current version of this PR (hash a1e6415) Details |
achristensen07
approved these changes
Sep 11, 2024
sheeparegreat
approved these changes
Sep 11, 2024
…ecified https://bugs.webkit.org/show_bug.cgi?id=279457 rdar://135631932 Reviewed by Alex Christensen. The existing implementation expects _webKitPropertyListData to return a dictionary that matches the declaration in existing CoreIPC*.serialization.in file, when _webKitPropertyListData selector exists. However, a class could add support for _webKitPropertyListData independently, and the result may not match the existing declaration, which could lead to breakage in existing WebKit clients. To avoid such issue, now we only allow to use WKKeyedCoder for types that have WKKeyedCoder support and do not specify secure coding class. When a class adds implementation for _webKitPropertyListData, the WKKeyedCoder coding will still be in use, and we could explicitly enable the new encoding format by updating CoreIPC*.serialization.in file and specifying secure encoding class later. Also, update tests with new auto-generated files. * Source/WebKit/Scripts/generate-serializers.py: (generate_webkit_secure_coding_impl): (generate_webkit_secure_coding_impl.is): * Source/WebKit/Scripts/webkit/messages_unittest.py: * Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.h: * Source/WebKit/Scripts/webkit/tests/GeneratedWebKitSecureCoding.cpp: (WebKit::dictionaryForWebKitSecureCodingTypeFromWKKeyedCoder): (WebKit::dictionaryForWebKitSecureCodingType): (WebKit::CoreIPCAVOutputContext::toID const): (WebKit::CoreIPCNSSomeFoundationType::toID const): (WebKit::NSSomeOtherFoundationType): (WebKit::NSSomeOtherFoundationType::toID const): (WebKit::CoreIPCDDScannerResult::toID const): * Source/WebKit/Scripts/webkit/tests/GeneratedWebKitSecureCoding.h: * Source/WebKit/Scripts/webkit/tests/MessageArgumentDescriptions.cpp: (IPC::jsValueForArguments): (IPC::messageArgumentDescriptions): * Source/WebKit/Scripts/webkit/tests/MessageNames.cpp: * Source/WebKit/Scripts/webkit/tests/MessageNames.h: * Source/WebKit/Scripts/webkit/tests/SerializedTypeInfo.cpp: (WebKit::allSerializedTypes): * Source/WebKit/Scripts/webkit/tests/TestSerializedType.serialization.in: * Source/WebKit/Scripts/webkit/tests/WebKitPlatformGeneratedSerializers.cpp: (IPC::NSSomeOtherFoundationType>::encode): (IPC::NSSomeOtherFoundationType>::decode): Canonical link: https://commits.webkit.org/283566@main
a1e6415 to
8b48849
Compare
Collaborator
|
Committed 283566@main (8b48849): https://commits.webkit.org/283566@main Reviewed commits have been landed. Closing PR #33412 and removing active labels. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
8b48849
a1e6415