Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9389120d2fda289828ced2e0c344b2779fcad33c
      
https://github.com/WebKit/WebKit/commit/9389120d2fda289828ced2e0c344b2779fcad33c
  Author: Alex Christensen <[email protected]>
  Date:   2026-01-28 (Wed, 28 Jan 2026)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/WKFrameInfo.mm
    M Source/WebKit/UIProcess/API/Cocoa/_WKJSHandle.mm
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/JSHandlePlugIn.mm
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/TextExtractionTests.mm

  Log Message:
  -----------
  Expose document identifier on _WKJSHandles from _WKRemoteObjectRegistry
https://bugs.webkit.org/show_bug.cgi?id=306491
rdar://169144968

Reviewed by Ryosuke Niwa.

Initial adoption of 306304@main showed it was lacking in 2 ways:
1. We need to allow use of encoders and decoders other than 
WKRemoteObjectDecoder and Encoder.
2. We need the document identifier to be populated and not crash.

Tests: Tools/TestWebKitAPI/Tests/WebKitCocoa/JSHandlePlugIn.mm
       Tools/TestWebKitAPI/Tests/WebKitCocoa/TextExtractionTests.mm

* Source/WebKit/UIProcess/API/Cocoa/WKFrameInfo.mm:
(-[WKFrameInfo _documentIdentifier]):
* Source/WebKit/UIProcess/API/Cocoa/_WKJSHandle.mm:
(-[_WKJSHandle initWithCoder:]):
(-[_WKJSHandle encodeWithCoder:]):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/JSHandlePlugIn.mm:
(javaScriptFunction):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/TextExtractionTests.mm:
(TestWebKitAPI::TEST(TextExtractionTests, InjectedBundle)):

Canonical link: https://commits.webkit.org/306398@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to