[webkit-changes] [WebKit/WebKit] 1cb47f: Cherry-pick 261131 at main (151a757aa72b). https://bu...

Myles C. Maxfield noreply at github.com
Sat Apr 1 14:45:35 PDT 2023


  Branch: refs/heads/webkitglib/2.40
  Home:   https://github.com/WebKit/WebKit
  Commit: 1cb47f592f57c25877a1932d1b8cf3b1b23551cb
      https://github.com/WebKit/WebKit/commit/1cb47f592f57c25877a1932d1b8cf3b1b23551cb
  Author: Myles C. Maxfield <mmaxfield at apple.com>
  Date:   2023-04-02 (Sun, 02 Apr 2023)

  Changed paths:
    M LayoutTests/TestExpectations
    A LayoutTests/http/tests/misc/heic-accept-header-expected.txt
    A LayoutTests/http/tests/misc/heic-accept-header.html
    A LayoutTests/http/tests/misc/resources/green-400x400.heic
    A LayoutTests/http/tests/misc/resources/image-heic-accept.py
    M LayoutTests/platform/ios/TestExpectations
    M LayoutTests/platform/mac/TestExpectations
    M Source/WebCore/loader/cache/CachedResourceRequest.cpp

  Log Message:
  -----------
  Cherry-pick 261131 at main (151a757aa72b). https://bugs.webkit.org/show_bug.cgi?id=253046

    Image types enabled by additionalSupportedImageTypes do not show up in the Accept: header
    https://bugs.webkit.org/show_bug.cgi?id=253046
    rdar://106006530

    Reviewed by Said Abou-Hallawa.

    We can simply augment the Accept: header with the mime types of these image formats.

    * LayoutTests/http/tests/misc/heic-accept-header-expected.txt: Added.
    * LayoutTests/http/tests/misc/heic-accept-header.html: Added.
    * LayoutTests/http/tests/misc/resources/image-heic-accept.py: Added.
    * Source/WebCore/loader/cache/CachedResourceRequest.cpp:
    (WebCore::acceptHeaderValueForAdditionalSupportedImageMIMETypes):
    (WebCore::acceptHeaderValueForImageResource):

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


  Commit: c71b43dd393b72160fd23df582432f678a04a07a
      https://github.com/WebKit/WebKit/commit/c71b43dd393b72160fd23df582432f678a04a07a
  Author: Myles C. Maxfield <mmaxfield at apple.com>
  Date:   2023-04-02 (Sun, 02 Apr 2023)

  Changed paths:
    M Source/WebCore/loader/cache/CachedResourceRequest.cpp

  Log Message:
  -----------
  Cherry-pick 262455 at main (8778787cbaef). https://bugs.webkit.org/show_bug.cgi?id=254780

    image/jxl isn't added to the Accept: header when USE(JPEGXL) is enabled
    https://bugs.webkit.org/show_bug.cgi?id=254780
    rdar://107446115

    Reviewed by Said Abou-Hallawa.

    Just like AVIF, if an image format is enabled, it should be advertised in the Accept: header.

    Because every port, AFAIK, has USE(JPEGXL) disabled, I didn't add an automated test for this.

    * Source/WebCore/loader/cache/CachedResourceRequest.cpp:
    (WebCore::acceptHeaderValueForJPEGXLImageResource):
    (WebCore::acceptHeaderValueForImageResource):

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


Compare: https://github.com/WebKit/WebKit/compare/564e5b80111e...c71b43dd393b


More information about the webkit-changes mailing list