Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 28077417bfbfaa460a3d0038068baa10d7ba2cd7
https://github.com/WebKit/WebKit/commit/28077417bfbfaa460a3d0038068baa10d7ba2cd7
Author: Alex Christensen <[email protected]>
Date: 2026-01-27 (Tue, 27 Jan 2026)
Changed paths:
M Source/WebKit/UIProcess/API/APIJSHandle.cpp
M Source/WebKit/UIProcess/API/APIJSHandle.h
M Source/WebKit/UIProcess/API/Cocoa/_WKJSHandle.h
M Source/WebKit/UIProcess/API/Cocoa/_WKJSHandle.mm
M
Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm
M
Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFramePrivate.h
M Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
A Tools/TestWebKitAPI/Tests/WebKitCocoa/JSHandlePlugIn.mm
A Tools/TestWebKitAPI/Tests/WebKitCocoa/JSHandlePlugInProtocol.h
M Tools/TestWebKitAPI/Tests/WebKitCocoa/TextExtractionTests.mm
Log Message:
-----------
Add a way to send a _WKJSHandle over _WKRemoteObjectRegistry
https://bugs.webkit.org/show_bug.cgi?id=306285
rdar://168934712
Reviewed by Ryosuke Niwa.
This is needed to help facilitate the incremental transition of Safari
off of the injected bundle SPI. This allows native code that is on its
way to being removed send a _WKJSHandle to the replacement code in the
UI process.
Tests: Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
Tools/TestWebKitAPI/Tests/WebKitCocoa/JSHandlePlugIn.mm
Tools/TestWebKitAPI/Tests/WebKitCocoa/JSHandlePlugInProtocol.h
Tools/TestWebKitAPI/Tests/WebKitCocoa/TextExtractionTests.mm
* Source/WebKit/UIProcess/API/APIJSHandle.cpp:
(API::JSHandle::~JSHandle):
* Source/WebKit/UIProcess/API/APIJSHandle.h:
* Source/WebKit/UIProcess/API/Cocoa/_WKJSHandle.h:
* Source/WebKit/UIProcess/API/Cocoa/_WKJSHandle.mm:
(+[_WKJSHandle supportsSecureCoding]):
(-[_WKJSHandle initWithCoder:]):
(-[_WKJSHandle encodeWithCoder:]):
* Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm:
(+[WKWebProcessPlugInFrame jsHandleFromValue:withContext:]):
*
Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFramePrivate.h:
* Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/JSHandlePlugIn.mm: Added.
(-[JSHandlePlugIn webProcessPlugIn:didCreateBrowserContextController:]):
(javaScriptFunction):
(-[JSHandlePlugIn
webProcessPlugInBrowserContextController:globalObjectIsAvailableForFrame:inScriptWorld:]):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/JSHandlePlugInProtocol.h: Copied from
Source/WebKit/UIProcess/API/APIJSHandle.h.
* Tools/TestWebKitAPI/Tests/WebKitCocoa/TextExtractionTests.mm:
(-[JSHandleReceiver receiveDictionaryFromWebProcess:]):
(TestWebKitAPI::TEST(TextExtractionTests, InjectedBundle)):
Canonical link: https://commits.webkit.org/306304@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications