0
Files
src/content/browser
Wan-Teh Chang 8edb5afb42 Add image/avif to kImageAcceptHeader if enable
Add image/avif to kImageAcceptHeader (used by
blink::PopulateResourceRequest()) if the AVIF feature is enabled.

AV1 Image File Format (AVIF) is a new image format:
https://aomediacodec.github.io/av1-avif/

The AVIF image decoder is based on the AV1 video decoder, which is
available in Chrome if the ENABLE_AV1_DECODER build flag is set. In
addition, AVIF support is enabled by the AVIF feature flag. Therefore,
it requires a combination of a compile-time check and a run-time check
to detect if AVIF is enabled.

Websites can check the presence of image/avif in the HTTP Accept header
to determine if they can serve AVIF images to the Web browser.

browser_tests --gtest_filter=ChromeAcceptHeaderTest.*
browser_tests --gtest_filter=ChromeAcceptHeaderTest.* \
    --enable-features=AVIF
content_browsertests --gtest_filter=AcceptHeaderTest.*
content_browsertests --gtest_filter=AcceptHeaderTest.* \
    --enable-features=AVIF

Tested: 
Bug: 1073107
Change-Id: I8e94c141794c22ae397ddf0c764a794e63d8f3df
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2161621
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Eric Roman <eroman@chromium.org>
Commit-Queue: Wan-Teh Chang <wtc@google.com>
Cr-Commit-Position: refs/heads/master@{#763907}
2020-04-29 18:07:53 +00:00
..