Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 02911a58052f17a12a466f6b74b25682bde67370 https://github.com/WebKit/WebKit/commit/02911a58052f17a12a466f6b74b25682bde67370 Author: Nipun Shukla <nipun_shu...@apple.com> Date: 2025-08-18 (Mon, 18 Aug 2025)
Changed paths: M Source/WebCore/page/DragController.cpp M Source/WebCore/page/EventHandler.cpp M Source/WebCore/page/EventHandler.h M Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm Log Message: ----------- [Site Isolation][macOS] Transform mouse coordinates for drag events when forwarding to an iframe process https://bugs.webkit.org/show_bug.cgi?id=264611 rdar://118244400 Reviewed by Charlie Wolfe. Instead of directly passing dragData.clientPosition() to the drag controller we first transform it to map to the remote frame's coordinate space, similar to how this is already handled for mouse and touch events. This logic is implemented for both DragController::dragEnteredOrUpdated() and EventHandler::dragSourceEndedAt() along with accompanying APITests which confirm coordinate transformation as LayoutTests do not currently support testing drag and drop in WK2. * Source/WebCore/page/DragController.cpp: (WebCore::DragController::dragEnteredOrUpdated): * Source/WebCore/page/EventHandler.cpp: (WebCore::EventHandler::dragSourceEndedAt): * Source/WebCore/page/EventHandler.h: * Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm: (TestWebKitAPI::TEST(SiteIsolation, DragEvents)): (TestWebKitAPI::(SiteIsolation, DragSourceEndedAtCoordinateTransformation)): Canonical link: https://commits.webkit.org/298858@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