Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a924f9f4db7a89afdfd619ccb2675465a3343c72
      
https://github.com/WebKit/WebKit/commit/a924f9f4db7a89afdfd619ccb2675465a3343c72
  Author: Wenson Hsieh <[email protected]>
  Date:   2026-02-12 (Thu, 12 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/page/text-extraction/TextExtraction.cpp
    M Source/WebCore/platform/StringEntropyHelpers.cpp
    M Source/WebCore/platform/StringEntropyHelpers.h

  Log Message:
  -----------
  [AutoFill Debugging] Append image file format in short image URL version
https://bugs.webkit.org/show_bug.cgi?id=307724
rdar://170232446

Reviewed by Abrar Rahman Protyasha.

Make a minor adjustment to how image URLs are shortened in text extraction 
output — if the last path
component has no file extension, automatically append one based on the cached 
image's MIME type,
with a fallback to a hard-coded value of `image/png`.

* 
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 cover this case too.

* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::extractItemData):
* Source/WebCore/platform/StringEntropyHelpers.cpp:
(WebCore::StringEntropyHelpers::lowEntropyLastPathComponent):
* Source/WebCore/platform/StringEntropyHelpers.h:

Canonical link: https://commits.webkit.org/307431@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to