Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 505138f30b39ffb43f54c527f74f4ff408ba4240
      
https://github.com/WebKit/WebKit/commit/505138f30b39ffb43f54c527f74f4ff408ba4240
  Author: Richard Houle <[email protected]>
  Date:   2026-08-18 (Tue, 18 Aug 2026)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm
    M Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/UIProcess/WebPageProxy.h
    M Source/WebKit/WebProcess/WebPage/WebFrame.cpp
    M Source/WebKit/WebProcess/WebPage/WebFrame.h
    M Source/WebKit/WebProcess/WebPage/WebPage.cpp
    M Source/WebKit/WebProcess/WebPage/WebPage.h
    M Source/WebKit/WebProcess/WebPage/WebPage.messages.in
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm

  Log Message:
  -----------
  WKWebView._hitTest(at:inFrameCoordinates:) returns JSHandle that can only be 
used in the
WKContentWorld.pageWorld
https://bugs.webkit.org/show_bug.cgi?id=322036
rdar://185228555

Reviewed by Alex Christensen.

This patch implements a version of WKWebView._hitTest(at:inFrameCoordinates:) 
that allows to specify a WKContentWorld.

* Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _hitTestAtPoint:inFrameCoordinateSpace:completionHandler:]):
(-[WKWebView 
_hitTestAtPoint:inFrameCoordinateSpace:inContentWorld:completionHandler:]):
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h:
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::hitTestAtPoint):
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/WebProcess/WebPage/WebFrame.cpp:
(WebKit::createJSHandle):
(WebKit::WebFrame::createAndPrepareToSendJSHandle const):
* Source/WebKit/WebProcess/WebPage/WebFrame.h:
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::hitTestAtPoint):
* Source/WebKit/WebProcess/WebPage/WebPage.h:
*
Source/WebKit/WebProcess/WebPage/WebPage.messages.in:
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm:
(TestWebKitAPI::(SiteIsolation, HitTesting)):
(TestWebKitAPI::(SiteIsolation, HitTestingInContentWorld)):

Canonical link: 
https://flagged.apple.com:443/proxy?t2=Du7Y0U5cH3&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzE5NDE2QG1haW4=&emid=4d56f76d-c872-477b-8894-bcda821eecc9&c=11



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

Reply via email to