Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: fb64ee67225a761ab3aa59d0be573bed55958632
https://github.com/WebKit/WebKit/commit/fb64ee67225a761ab3aa59d0be573bed55958632
Author: Wenson Hsieh <[email protected]>
Date: 2026-02-15 (Sun, 15 Feb 2026)
Changed paths:
M
LayoutTests/fast/text-extraction/debug-text-extraction-shorten-urls-expected.txt
M LayoutTests/fast/text-extraction/debug-text-extraction-shorten-urls.html
M Source/WebCore/platform/StringEntropyHelpers.cpp
Log Message:
-----------
[AutoFill Debugging] [URL Shortening] Image file extensions sometimes contain
extra text
https://bugs.webkit.org/show_bug.cgi?id=307953
rdar://170436339
Reviewed by Abrar Rahman Protyasha.
Make a small adjustment to URL shortening, in the case of image source URLs —
strip out any part of
the file extension, after and including the first non-alphanumeric character.
This changes a URL
like
"https://www.example.com/assets/6539472cv17d.jpg;canvasHeight=130;canvasWidth=130"
from
`image.jpg;canvasHeight=130;canvasWidth=130` into just `image.jpg`.
*
LayoutTests/fast/text-extraction/debug-text-extraction-shorten-urls-expected.txt:
* LayoutTests/fast/text-extraction/debug-text-extraction-shorten-urls.html:
Augment a layout test to exercise this change.
* Source/WebCore/platform/StringEntropyHelpers.cpp:
(WebCore::StringEntropyHelpers::lowEntropyLastPathComponent):
Canonical link: https://commits.webkit.org/307633@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications