Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0a90157916290520f4d0916f9d64f68d363d0fc6
https://github.com/WebKit/WebKit/commit/0a90157916290520f4d0916f9d64f68d363d0fc6
Author: Wenson Hsieh <[email protected]>
Date: 2026-04-08 (Wed, 08 Apr 2026)
Changed paths:
M Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm
M Source/WebKit/UIProcess/API/Cocoa/_WKTextExtraction.h
M Source/WebKit/UIProcess/API/Cocoa/_WKTextExtraction.mm
M Source/WebKit/UIProcess/API/Cocoa/_WKTextExtractionInternal.h
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/TextExtractionTests.mm
Log Message:
-----------
[AutoFill Debugging] Plumb the top level security origin through
_WKTextExtractionResults
https://bugs.webkit.org/show_bug.cgi?id=311736
rdar://174328167
Reviewed by Abrar Rahman Protyasha and Aditya Keerthi.
Add an `origin` property to `_WKTextExtractionResult`, which represents the
origin of the web view
at the moment when the text extraction was requested. Because text extraction
may require
asynchronous work both before and after requesting the actual text extraction
data, this allows
clients to sanity check the actual origin from which we performed extraction.
Test: TextExtractionTests.ResultOrigin
* Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:
(createEmptyTextExtractionResult):
(-[WKWebView
_extractDebugTextWithConfigurationWithoutUpdatingFilterRules:assertionScope:completionHandler:]):
* Source/WebKit/UIProcess/API/Cocoa/_WKTextExtraction.h:
* Source/WebKit/UIProcess/API/Cocoa/_WKTextExtraction.mm:
(-[_WKTextExtractionResult
initWithWebView:origin:textContent:filteredOutAnyText:shortenedURLs:textToContainerMap:]):
(-[_WKTextExtractionResult origin]):
(-[_WKTextExtractionResult
initWithWebView:textContent:filteredOutAnyText:shortenedURLs:textToContainerMap:]):
Deleted.
* Source/WebKit/UIProcess/API/Cocoa/_WKTextExtractionInternal.h:
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/TextExtractionTests.mm:
(TestWebKitAPI::(TextExtractionTests, ResultOrigin)):
Canonical link: https://commits.webkit.org/310804@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications