Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 03669a4d45f5f882b0cf7004c5bfc2620441d4d5
https://github.com/WebKit/WebKit/commit/03669a4d45f5f882b0cf7004c5bfc2620441d4d5
Author: Zak Ridouh <[email protected]>
Date: 2026-10-07 (Wed, 07 Oct 2026)
Changed paths:
M Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm
M Source/WebKit/UIProcess/WebPageProxy.cpp
M Source/WebKit/UIProcess/WebPageProxy.h
M Source/WebKit/WebProcess/WebPage/WebPage.cpp
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ImageAnalysisTests.mm
Log Message:
-----------
[Site Isolation] Remove Background and Live Text do not work for images in
cross-site iframes
<https://bugs.webkit.org/show_bug.cgi?id=325602>
<rdar://problem/188669029>
Reviewed by Alex Christensen.
Remove Background, Live Text and image bitmap requests were sent to the main
frame's process, which can't find
elements in a cross-site iframe. Send them to the process that owns the
element, and have the Live Text handler
hit-test in the element's local root frame.
Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ImageAnalysisTests.mm
* Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm:
(WebKit::WebPageProxy::replaceImageForRemoveBackground):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::updateWithTextRecognitionResult):
(WebKit::WebPageProxy::requestImageBitmap):
(WebKit::WebPageProxy::shouldAllowRemoveBackground):
(WebKit::WebPageProxy::processForElementContext):
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updateWithTextRecognitionResult):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ImageAnalysisTests.mm:
(TestWebKitAPI::TEST(ImageAnalysisTests, TextRecognitionInCrossOriginIframe)):
(TestWebKitAPI::TEST(ImageAnalysisTests,
PerformRemoveBackgroundInCrossOriginIframe)):
Canonical link: https://commits.webkit.org/323060@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications