Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 20e4b95ce5e0453f3c9017d4dbe7c0255340c403
      
https://github.com/WebKit/WebKit/commit/20e4b95ce5e0453f3c9017d4dbe7c0255340c403
  Author: Richard Robinson <[email protected]>
  Date:   2026-07-31 (Fri, 31 Jul 2026)

  Changed paths:
    A 
LayoutTests/http/tests/site-isolation/touch-events/drag-nested-cross-origin-frame-in-offset-subframe-expected.txt
    A 
LayoutTests/http/tests/site-isolation/touch-events/drag-nested-cross-origin-frame-in-offset-subframe.html
    A 
LayoutTests/http/tests/site-isolation/touch-events/drag-nested-cross-origin-frame-in-scrolled-subframe-expected.txt
    A 
LayoutTests/http/tests/site-isolation/touch-events/drag-nested-cross-origin-frame-in-scrolled-subframe.html
    A 
LayoutTests/http/tests/site-isolation/touch-events/resources/nested-frame-reports-touch-coordinates.html
    A 
LayoutTests/http/tests/site-isolation/touch-events/resources/samesite-offset-container-touch.html
    A 
LayoutTests/http/tests/site-isolation/touch-events/resources/samesite-scrolled-container-touch.html
    M Source/WebCore/page/RemoteFrameGeometryTransformer.cpp
    M Source/WebCore/page/RemoteFrameGeometryTransformer.h
    M Source/WebKit/Shared/WebTouchEvent.cpp

  Log Message:
  -----------
  [Site Isolation] [iOS] Drag gesture doesn't register inside cross-origin 
iframe (douban.com captcha)
https://bugs.webkit.org/show_bug.cgi?id=320725
rdar://183709792

Reviewed by Abrar Rahman Protyasha and Lily Spiniolas.

This is a generic coordinate conversion issue; a few places in `WebTouchEvent` 
were passing in a location
in root view to a function that expected a location in contents view.

Fix by adding a transformation function that accepts a point in root view 
coordinates, and fix the call sites.

Test: 
http/tests/site-isolation/touch-events/drag-nested-cross-origin-frame-in-offset-subframe.html

* 
LayoutTests/http/tests/site-isolation/touch-events/drag-nested-cross-origin-frame-in-offset-subframe-expected.txt:
 Added.
* 
LayoutTests/http/tests/site-isolation/touch-events/drag-nested-cross-origin-frame-in-offset-subframe.html:
 Added.
* 
LayoutTests/http/tests/site-isolation/touch-events/resources/nested-frame-reports-touch-coordinates.html:
 Added.
* 
LayoutTests/http/tests/site-isolation/touch-events/resources/samesite-offset-container-touch.html:
 Added.
* Source/WebCore/page/RemoteFrameGeometryTransformer.cpp:
(WebCore::RemoteFrameGeometryTransformer::transformRootViewPointToRemoteFrameCoordinates
 const):
* Source/WebCore/page/RemoteFrameGeometryTransformer.h:
* Source/WebKit/Shared/WebTouchEvent.cpp:
(WebKit::WebTouchEvent::transformToRemoteFrameCoordinates):
(WebKit::WebPlatformTouchPoint::transformToRemoteFrameCoordinates):

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



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

Reply via email to