Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 199bead9df8d5f74b2cf117fd4719e7ec9cad355
https://github.com/WebKit/WebKit/commit/199bead9df8d5f74b2cf117fd4719e7ec9cad355
Author: Wenson Hsieh <[email protected]>
Date: 2026-10-09 (Fri, 09 Oct 2026)
Changed paths:
M Source/WebKit/Platform/classifier/cocoa/TextExtractionFilter.mm
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/TextExtractionTests.swift
Log Message:
-----------
[Text Extraction] Remove some dead codepaths in TextExtractionFilter.mm
https://bugs.webkit.org/show_bug.cgi?id=326926
rdar://189579270
Reviewed by Abrar Rahman Protyasha.
After it was upstreamed in 315673@main, we can remove some of the now-dead
codepaths in
`TextExtractionFilter.mm` that were used to compile this model on-demand. Also
add a new API test
that actually exercises this classifier end-to-end.
Test: TextExtractionTests/classifierFiltersOutIrrelevantText()
* Source/WebKit/Platform/classifier/cocoa/TextExtractionFilter.mm:
(WebKit::TextExtractionFilter::initializeModelIfNeeded):
(WebKit::TextExtractionFilter::shouldFilter):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/TextExtractionTests.swift:
(TextExtractionTests.classifierFiltersOutIrrelevantText):
Canonical link: https://commits.webkit.org/323228@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications