Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: f4eb2677c3861070dd00753bc2503a606b96d92b https://github.com/WebKit/WebKit/commit/f4eb2677c3861070dd00753bc2503a606b96d92b Author: Nitin Mahendru <nitinmahen...@apple.com> Date: 2024-06-11 (Tue, 11 Jun 2024)
Changed paths: M Source/WebCore/Headers.cmake M Source/WebCore/WebCore.xcodeproj/project.pbxproj M Source/WebCore/crypto/SerializedCryptoKeyWrap.h A Source/WebCore/crypto/WrappedCryptoKey.h M Source/WebCore/crypto/cocoa/SerializedCryptoKeyWrapMac.mm M Source/WebCore/crypto/gcrypt/SerializedCryptoKeyWrapGCrypt.cpp M Source/WebCore/crypto/openssl/SerializedCryptoKeyWrapOpenSSL.cpp M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in M Source/WebKit/UIProcess/WebPageProxy.cpp M Source/WebKit/UIProcess/WebPageProxy.h M Source/WebKit/UIProcess/WebPageProxy.messages.in M Source/WebKit/UIProcess/WebProcessProxy.cpp M Source/WebKit/UIProcess/WebProcessProxy.h M Source/WebKit/UIProcess/WebProcessProxy.messages.in M Source/WebKit/WebProcess/WebCoreSupport/WebCryptoClient.cpp M Source/WebKitLegacy/WebCoreSupport/WebCryptoClient.mm M Tools/TestWebKitAPI/Tests/WebCore/cocoa/SerializedCryptoKeyWrap.mm Log Message: ----------- Serialize CryptoKey using CoreIPC https://bugs.webkit.org/show_bug.cgi?id=272064 rdar://128551948 Reviewed by Alex Christensen and David Kilzer. Over the wire bytes will now be serialized using CoreIPC ::decode and thus the crash in PropertyListDeserialization is avoided. Note that serialization is still property list and that maintains backward compatibility with serialized CryptoKeys on disks of existing users. Testing: No new tests are added as this functionality is already being exercised by Indexeddb tests/service worker tests. * Source/WebCore/Headers.cmake: * Source/WebCore/crypto/WrappedCryptoKey.h: * Source/WebCore/crypto/SerializedCryptoKeyWrap.h: * Source/WebCore/crypto/cocoa/SerializedCryptoKeyWrapMac.mm: (WebCore::wrapSerializedCryptoKey): (WebCore::createArrayFromData): (WebCore::readSerializedCryptoKey): (WebCore::unwrapCryptoKey): (WebCore::unwrapSerializedCryptoKey): Deleted. * Source/WebCore/crypto/gcrypt/SerializedCryptoKeyWrapGCrypt.cpp: (WebCore::readSerializedCryptoKey): (WebCore::unwrapCryptoKey): (WebCore::unwrapSerializedCryptoKey): Deleted. * Source/WebCore/crypto/openssl/SerializedCryptoKeyWrapOpenSSL.cpp: (WebCore::readSerializedCryptoKey): (WebCore::unwrapCryptoKey): (WebCore::unwrapSerializedCryptoKey): Deleted. * Source/WebKit/Scripts/webkit/messages.py: (headers_for_type): * Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in: * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::unwrapCryptoKey): * Source/WebKit/UIProcess/WebPageProxy.h: * Source/WebKit/UIProcess/WebPageProxy.messages.in: * Source/WebKit/UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::unwrapCryptoKey): * Source/WebKit/UIProcess/WebProcessProxy.h: * Source/WebKit/UIProcess/WebProcessProxy.messages.in: * Source/WebKit/WebProcess/WebCoreSupport/WebCryptoClient.cpp: (WebKit::WebCryptoClient::unwrapCryptoKey const): * Source/WebKitLegacy/WebCoreSupport/WebCryptoClient.mm: (WebCryptoClient::unwrapCryptoKey const): * Tools/TestWebKitAPI/Tests/WebCore/cocoa/SerializedCryptoKeyWrap.mm: (TestWebKitAPI::TEST_F): Originally-landed-as: 272448.867@safari-7618-branch (b4edd8f7193f). rdar://128551948 test Canonical link: https://commits.webkit.org/279933@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes