[webkit-changes] [WebKit/WebKit] 877878: image/jxl isn't added to the Accept: header when U...

Myles C. Maxfield noreply at github.com
Fri Mar 31 17:16:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8778787cbaef5a2237eb3cecd07ee515e59f6469
      https://github.com/WebKit/WebKit/commit/8778787cbaef5a2237eb3cecd07ee515e59f6469
  Author: Myles C. Maxfield <mmaxfield at apple.com>
  Date:   2023-03-31 (Fri, 31 Mar 2023)

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

  Log Message:
  -----------
  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




More information about the webkit-changes mailing list