Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: df87ca31e545b6f34a660bcaeb1951adec9f9345
      
https://github.com/WebKit/WebKit/commit/df87ca31e545b6f34a660bcaeb1951adec9f9345
  Author: Zak Ridouh <[email protected]>
  Date:   2026-07-16 (Thu, 16 Jul 2026)

  Changed paths:
    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
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm

  Log Message:
  -----------
  [Site Isolation][iOS] Fix autocorrection not being applied to inputs in 
cross-origin iframes
https://bugs.webkit.org/show_bug.cgi?id=317473
rdar://180098320

Reviewed by Alex Christensen.

applyAutocorrection sends ApplyAutocorrection / SyncApplyAutocorrection to the
main frame's process. When the focused text field is in a cross-origin iframe
that is the wrong process, so the correction is applied to the wrong frame or
dropped entirely and accepting an autocorrection in the iframe input does 
nothing.

Route both overloads to the process containing the focused frame, matching
executeEditCommand and insertTextAsync.

Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm

* Source/WebKit/UIProcess/WebPageProxy.cpp:
* Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm:
(WebKit::WebPageProxy::applyAutocorrection):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm:
(TestWebKitAPI::(SiteIsolation, ApplyAutocorrectionInCrossOriginIframe)):

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



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

Reply via email to