Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 57942aeaf17b188b5a02a73cc2e05d5697a10ba9
https://github.com/WebKit/WebKit/commit/57942aeaf17b188b5a02a73cc2e05d5697a10ba9
Author: Zak Ridouh <[email protected]>
Date: 2026-06-12 (Fri, 12 Jun 2026)
Changed paths:
A
LayoutTests/http/tests/site-isolation/blur-focused-element-cross-origin-iframe-expected.txt
A
LayoutTests/http/tests/site-isolation/blur-focused-element-cross-origin-iframe.html
A LayoutTests/http/tests/site-isolation/resources/blur-input-iframe.html
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] BlurFocusedElement is broken when the focused element is
inside a cross-origin iframe on iOS
https://bugs.webkit.org/show_bug.cgi?id=310061
rdar://172704039
Reviewed by Abrar Rahman Protyasha.
blurFocusedElement() sends the BlurFocusedElement IPC message to
legacyMainFrameProcess(), which is the wrong process when the focused
element lives in a site-isolated cross-origin iframe.
Pass the focused element's frame identifier through to
sendToProcessContainingFrame(), matching the pattern already used by
SetFocusedElementValue, SetFocusedElementSelectedIndex, and
SetSelectElementIsOpen.
*
LayoutTests/http/tests/site-isolation/blur-focused-element-cross-origin-iframe-expected.txt:
Added.
*
LayoutTests/http/tests/site-isolation/blur-focused-element-cross-origin-iframe.html:
Added.
* LayoutTests/http/tests/site-isolation/resources/blur-input-iframe.html: Added.
* Source/WebKit/UIProcess/WebPageProxy.cpp:
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView endEditingAndUpdateFocusAppearanceWithReason:]):
(-[WKContentView focusedFormControlViewDidSubmit:]):
(-[WKContentView focusedFormControlViewDidCancel:]):
(-[WKContentView
dismissQuickboardViewControllerAndRevealFocusedFormOverlayIfNecessary:]):
* Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm:
(WebKit::WebPageProxy::blurFocusedElement):
Canonical link: https://commits.webkit.org/315138@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications