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

  Changed paths:
    M LayoutTests/TestExpectations
    A 
LayoutTests/http/tests/site-isolation/autofill-credentials-in-cross-origin-iframe-expected.txt
    A 
LayoutTests/http/tests/site-isolation/autofill-credentials-in-cross-origin-iframe.html
    A 
LayoutTests/http/tests/site-isolation/resources/autofill-credentials-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] AutofillLoginCredentials is broken when the focused element 
is inside a cross-origin iframe on iOS
https://bugs.webkit.org/show_bug.cgi?id=310075
rdar://172718686

Reviewed by Alex Christensen.

autofillLoginCredentials() sends the AutofillLoginCredentials IPC message
to m_legacyMainFrameProcess, which is the wrong process when the focused
element lives in a site-isolated cross-origin iframe. This breaks
autofill credential selection for login forms in embedded cross-origin
iframes — a very common pattern for payment and authentication flows.

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

* LayoutTests/TestExpectations:
* 
LayoutTests/http/tests/site-isolation/autofill-credentials-in-cross-origin-iframe-expected.txt:
 Added.
* 
LayoutTests/http/tests/site-isolation/autofill-credentials-in-cross-origin-iframe.html:
 Added.
* 
LayoutTests/http/tests/site-isolation/resources/autofill-credentials-iframe.html:
 Added.
* LayoutTests/platform/ios/TestExpectations:
* Source/WebKit/UIProcess/WebPageProxy.cpp:
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView insertTextSuggestion:]):
* Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm:
(WebKit::WebPageProxy::autofillLoginCredentials):

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



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

Reply via email to