Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 7aaf7bfc803e868d48991be1cd56099b993d3e80 https://github.com/WebKit/WebKit/commit/7aaf7bfc803e868d48991be1cd56099b993d3e80 Author: Alex Christensen <achristen...@apple.com> Date: 2025-03-14 (Fri, 14 Mar 2025)
Changed paths: M Source/WebCore/bindings/js/SerializedScriptValue.cpp M Source/WebCore/bindings/js/SerializedScriptValue.h M Source/WebCore/dom/Document.cpp M Source/WebCore/dom/Document.h M Source/WebCore/dom/EmptyScriptExecutionContext.h M Source/WebCore/dom/ScriptExecutionContext.h M Source/WebCore/page/CryptoClient.h M Source/WebCore/workers/WorkerGlobalScope.cpp M Source/WebCore/workers/WorkerGlobalScope.h M Source/WebCore/worklets/WorkletGlobalScope.h M Source/WebKit/Shared/API/APISerializedScriptValue.cpp M Source/WebKit/Shared/API/APISerializedScriptValue.h 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/WebKit/WebProcess/WebCoreSupport/WebCryptoClient.h M Source/WebKitLegacy/WebCoreSupport/WebCryptoClient.h M Source/WebKitLegacy/WebCoreSupport/WebCryptoClient.mm Log Message: ----------- Simplify WebCryptoClient::serializeAndWrapCryptoKey https://bugs.webkit.org/show_bug.cgi?id=289733 rdar://146980182 Reviewed by Sihui Liu. CryptoClient::wrapCryptoKey was unreachable code. Remove it. SerializedScriptValue::serializeCryptoKey doesn't need a JS context. WebPageProxy::serializeAndWrapCryptoKey and WebProcessProxy::serializeAndWrapCryptoKey should have consistent and thorough message checks. SharedJSContextWK is no longer needed on Cocoa platforms. * Source/WebCore/bindings/js/SerializedScriptValue.cpp: (WebCore::CloneSerializer::serializeCryptoKey): (WebCore::CloneSerializer::CloneSerializer): (WebCore::CloneSerializer::write): (WebCore::SerializedScriptValue::serializeCryptoKey): * Source/WebCore/bindings/js/SerializedScriptValue.h: * Source/WebCore/dom/Document.cpp: (WebCore::Document::wrapCryptoKey): Deleted. * Source/WebCore/dom/Document.h: * Source/WebCore/dom/EmptyScriptExecutionContext.h: * Source/WebCore/dom/ScriptExecutionContext.h: * Source/WebCore/page/CryptoClient.h: (WebCore::CryptoClient::wrapCryptoKey const): Deleted. * Source/WebCore/workers/WorkerGlobalScope.cpp: (WebCore::WorkerGlobalScope::wrapCryptoKey): Deleted. * Source/WebCore/workers/WorkerGlobalScope.h: * Source/WebCore/worklets/WorkletGlobalScope.h: * Source/WebKit/Shared/API/APISerializedScriptValue.cpp: (API::SerializedScriptValue::serializeCryptoKey): Deleted. * Source/WebKit/Shared/API/APISerializedScriptValue.h: * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::serializeAndWrapCryptoKey): * Source/WebKit/UIProcess/WebPageProxy.h: * Source/WebKit/UIProcess/WebPageProxy.messages.in: * Source/WebKit/UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::serializeAndWrapCryptoKey): * Source/WebKit/UIProcess/WebProcessProxy.h: * Source/WebKit/UIProcess/WebProcessProxy.messages.in: * Source/WebKit/WebProcess/WebCoreSupport/WebCryptoClient.cpp: (WebKit::WebCryptoClient::wrapCryptoKey const): Deleted. * Source/WebKit/WebProcess/WebCoreSupport/WebCryptoClient.h: * Source/WebKitLegacy/WebCoreSupport/WebCryptoClient.h: * Source/WebKitLegacy/WebCoreSupport/WebCryptoClient.mm: (WebCryptoClient::serializeAndWrapCryptoKey const): Canonical link: https://commits.webkit.org/292195@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