Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ad5d75262d4f212ed24831e145ca88adbca7f28d
https://github.com/WebKit/WebKit/commit/ad5d75262d4f212ed24831e145ca88adbca7f28d
Author: Wenson Hsieh <[email protected]>
Date: 2026-08-03 (Mon, 03 Aug 2026)
Changed paths:
M Source/WebCore/page/text-extraction/TextExtraction.cpp
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/TextExtractionTests.mm
Log Message:
-----------
[Text Extraction] Enforce a stricter truncation policy for link href
attribute when describing interactions
https://bugs.webkit.org/show_bug.cgi?id=320825
rdar://183779215
Reviewed by Abrar Rahman Protyasha.
Make two small adjustments here:
- Drop any query parameters from the href attribute (i.e., after the first `?`).
- Cap the overall length to be no more than 80 characters.
…to prevent noisy query parameters from causing the supervisor agent to be
overly strict.
* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::shortenedHREFAttributeForDescription):
(WebCore::TextExtraction::textDescription):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/TextExtractionTests.mm:
(TestWebKitAPI::TEST(TextExtractionTests, InteractionDebugDescription)):
Canonical link: https://commits.webkit.org/318466@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications