Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6faa92a0d49eaa83ba3348ddf878ddb978ab44eb
      
https://github.com/WebKit/WebKit/commit/6faa92a0d49eaa83ba3348ddf878ddb978ab44eb
  Author: Alex Christensen <[email protected]>
  Date:   2025-09-09 (Tue, 09 Sep 2025)

  Changed paths:
    M Source/WebCore/page/ContextMenuController.cpp
    M Source/WebCore/page/Frame.h
    M Source/WebCore/page/LocalFrame.cpp
    M Source/WebCore/page/LocalFrame.h
    M Source/WebCore/page/RemoteFrame.cpp
    M Source/WebCore/page/RemoteFrame.h
    M Source/WebCore/rendering/HitTestResult.cpp
    M Source/WebCore/rendering/HitTestResult.h
    M Source/WebKit/Shared/API/Cocoa/_WKHitTestResult.h
    M Source/WebKit/Shared/API/Cocoa/_WKHitTestResult.mm
    M Source/WebKit/Shared/WebHitTestResultData.cpp
    M Source/WebKit/Shared/WebHitTestResultData.h
    M Source/WebKit/Shared/WebHitTestResultData.serialization.in
    M Source/WebKit/UIProcess/API/APIHitTestResult.h
    M Source/WebKitLegacy/mac/Misc/WebElementDictionary.mm
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm

  Log Message:
  -----------
  Make replacement for users of WKBundlePageUIClient.mouseDidMoveOverElement
https://bugs.webkit.org/show_bug.cgi?id=298575
rdar://160163579

Reviewed by Jeff Miller.

There are 3 remaining uses of WKBundlePageUIClient.mouseDidMoveOverElement.
It is used to expose with a hit test result whether the target frame
is the same as the frame containing the element, whether it is a link with a 
target
frame at all, and whether the target frame is in the same page.  Expose this 
information
as 3 BOOLs instead.

While I was at it, I noticed that the assumption that the target frame
was a LocalFrame isn't compatible with site isolation.  I made it
work with RemoteFrames, too.

* Source/WebCore/page/ContextMenuController.cpp:
(WebCore::ContextMenuController::contextMenuItemSelected):
* Source/WebCore/page/Frame.h:
* Source/WebCore/page/LocalFrame.cpp:
(WebCore::LocalFrame::loadFrameRequest):
* Source/WebCore/page/LocalFrame.h:
* Source/WebCore/page/RemoteFrame.cpp:
(WebCore::RemoteFrame::loadFrameRequest):
* Source/WebCore/page/RemoteFrame.h:
* Source/WebCore/rendering/HitTestResult.cpp:
(WebCore::HitTestResult::targetFrame const):
* Source/WebCore/rendering/HitTestResult.h:
* Source/WebKit/Shared/API/Cocoa/_WKHitTestResult.h:
* Source/WebKit/Shared/API/Cocoa/_WKHitTestResult.mm:
(-[_WKHitTestResult linkHasDifferentTargetFrame]):
* Source/WebKit/Shared/WebHitTestResultData.cpp:
(WebKit::WebHitTestResultData::WebHitTestResultData):
* Source/WebKit/Shared/WebHitTestResultData.h:
* Source/WebKit/Shared/WebHitTestResultData.serialization.in:
* Source/WebKit/UIProcess/API/APIHitTestResult.h:
(API::HitTestResult::targetFrame const):
* Source/WebKitLegacy/mac/Misc/WebElementDictionary.mm:
(-[WebElementDictionary _targetWebFrame]):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:
(-[MouseMoveOverElementDelegate 
_webView:mouseDidMoveOverElement:withFlags:userInfo:]):
((WebKit, MouseMoveOverElement)):
((WebKit, MouseMoveOverElementWithClosedWebView)):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to