Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: aed314db597766d42ef3701e87896e5edc5c5a8a
      
https://github.com/WebKit/WebKit/commit/aed314db597766d42ef3701e87896e5edc5c5a8a
  Author: Zak Ridouh <[email protected]>
  Date:   2026-06-17 (Wed, 17 Jun 2026)

  Changed paths:
    M LayoutTests/TestExpectations
    A 
LayoutTests/http/tests/site-isolation/focus-navigation-cross-origin-iframe-expected.txt
    A 
LayoutTests/http/tests/site-isolation/focus-navigation-cross-origin-iframe.html
    A 
LayoutTests/http/tests/site-isolation/resources/focus-navigation-iframe.html
    M LayoutTests/platform/ios/TestExpectations
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/UIProcess/WebPageProxy.h
    M Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
    M Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm

  Log Message:
  -----------
  [Site Isolation] FocusNextFocusedElement is broken when the focused element 
is inside a cross-origin iframe on iOS
https://bugs.webkit.org/show_bug.cgi?id=310063
rdar://172704828

Reviewed by Aditya Keerthi.

focusNextFocusedElement() sends the FocusNextFocusedElement IPC message
to legacyMainFrameProcess(), which is the wrong process when the focused
element lives in a site-isolated cross-origin iframe. This breaks
next/previous form field navigation from the keyboard accessory bar.

Pass the focused element's frame identifier through to
sendWithAsyncReplyToProcessContainingFrame(), matching the pattern
already used by SetFocusedElementValue, SetFocusedElementSelectedIndex,
and SetSelectElementIsOpen.

* LayoutTests/TestExpectations:
* 
LayoutTests/http/tests/site-isolation/focus-navigation-cross-origin-iframe-expected.txt:
 Added.
* 
LayoutTests/http/tests/site-isolation/focus-navigation-cross-origin-iframe.html:
 Added.
* LayoutTests/http/tests/site-isolation/resources/focus-navigation-iframe.html: 
Added.
* LayoutTests/platform/ios/TestExpectations:
* Source/WebKit/UIProcess/WebPageProxy.cpp:
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView accessoryView:tabInDirection:]):
(-[WKContentView focusedFormControlViewDidRequestNextNode:]):
(-[WKContentView focusedFormControlViewDidRequestPreviousNode:]):
* Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm:
(WebKit::WebPageProxy::focusNextFocusedElement):

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



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

Reply via email to