Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 20e46bea66daf37a1032bb1aa02dca3fdc656c84 https://github.com/WebKit/WebKit/commit/20e46bea66daf37a1032bb1aa02dca3fdc656c84 Author: Charlie Wolfe <charl...@apple.com> Date: 2023-10-10 (Tue, 10 Oct 2023)
Changed paths: A LayoutTests/http/tests/site-isolation/mouse-events/resources/message-mouse-down-coordinates.html A LayoutTests/http/tests/site-isolation/mouse-events/resources/scroll-and-message-mouse-down-coordinates.html A LayoutTests/http/tests/site-isolation/mouse-events/scrolled-iframe-expected.txt A LayoutTests/http/tests/site-isolation/mouse-events/scrolled-iframe.html A LayoutTests/http/tests/site-isolation/mouse-events/scrolled-mainframe-expected.txt A LayoutTests/http/tests/site-isolation/mouse-events/scrolled-mainframe.html M LayoutTests/platform/ios/TestExpectations M Source/WebCore/page/EventHandler.cpp M Source/WebCore/page/EventHandler.h Log Message: ----------- [Site Isolation] Fix mouse event coordinates with scrolled frames https://bugs.webkit.org/show_bug.cgi?id=262905 rdar://116690742 Reviewed by Alex Christensen. Currently, mouse events passed to site-isolated frames will be offset if the target frame or target frame’s ancestors are scrolled. We should convert to/from root view coordinates so that the scroll position for each frame is considered. Also change the parameter back on `documentPointForWindowPoint()` since that function should only be used for local frames. * LayoutTests/http/tests/site-isolation/mouse-events/resources/message-mouse-down-coordinates.html: Added. * LayoutTests/http/tests/site-isolation/mouse-events/resources/scroll-and-message-mouse-down-coordinates.html: Added. * LayoutTests/http/tests/site-isolation/mouse-events/scrolled-iframe-expected.txt: Added. * LayoutTests/http/tests/site-isolation/mouse-events/scrolled-iframe.html: Added. * LayoutTests/http/tests/site-isolation/mouse-events/scrolled-mainframe-expected.txt: Added. * LayoutTests/http/tests/site-isolation/mouse-events/scrolled-mainframe.html: Added. * LayoutTests/platform/ios/TestExpectations: * Source/WebCore/page/EventHandler.cpp: (WebCore::documentPointForWindowPoint): (WebCore::EventHandler::mouseEventDataForRemoteFrame): (WebCore::EventHandler::handleMousePressEvent): (WebCore::EventHandler::handleMouseMoveEvent): (WebCore::EventHandler::handleMouseReleaseEvent): * Source/WebCore/page/EventHandler.h: Canonical link: https://commits.webkit.org/269143@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes