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
..
2020-04-28 21:45:33 +00:00
2020-04-28 21:38:10 +00:00
2020-04-28 20:21:15 +00:00
2020-03-27 04:33:23 +00:00
2020-04-28 20:21:15 +00:00
2020-04-28 20:21:15 +00:00
2020-02-26 16:10:21 +00:00
2020-04-28 20:21:15 +00:00
2020-01-31 02:35:16 +00:00
2020-04-28 17:47:00 +00:00
2020-04-28 20:21:15 +00:00
2020-04-28 20:21:15 +00:00
2020-04-24 12:40:59 +00:00
2020-04-10 22:28:41 +00:00
2020-04-28 20:21:15 +00:00
2020-04-20 16:39:40 +00:00
2020-03-06 20:48:04 +00:00
2020-04-28 20:21:15 +00:00
2020-04-15 17:59:36 +00:00
2020-04-28 18:34:20 +00:00
2020-03-06 20:48:04 +00:00
2020-04-28 22:04:09 +00:00
2020-04-20 16:39:40 +00:00
2020-04-28 20:21:15 +00:00
2020-04-28 20:21:15 +00:00
2020-04-28 20:21:15 +00:00
2020-04-28 20:21:15 +00:00
2020-04-29 16:12:17 +00:00
2020-04-20 09:05:00 +00:00
2020-04-20 09:05:00 +00:00
2020-04-29 17:42:19 +00:00
2020-03-15 16:41:19 +00:00
2020-02-26 16:10:21 +00:00
2020-04-10 22:18:38 +00:00
2020-04-28 20:21:15 +00:00
2020-03-18 23:52:08 +00:00
2020-04-28 20:21:15 +00:00
2020-04-27 19:02:13 +00:00
2020-03-12 04:21:48 +00:00
2020-04-07 22:46:21 +00:00
2020-04-28 20:21:15 +00:00
2019-12-06 18:33:54 +00:00
2020-04-28 20:21:15 +00:00
2020-04-20 09:05:00 +00:00
2020-04-29 18:07:53 +00:00
2020-04-28 20:21:15 +00:00
2020-04-28 15:53:43 +00:00
2020-04-27 18:29:20 +00:00
2020-04-15 06:01:12 +00:00
2020-04-01 17:57:40 +00:00
2020-04-28 21:33:41 +00:00
2020-03-06 20:48:04 +00:00
2020-01-20 06:32:12 +00:00
2020-04-28 20:21:15 +00:00
2020-03-26 09:32:53 +00:00
2020-04-29 16:12:17 +00:00
2020-04-23 00:17:42 +00:00
2020-04-28 20:21:15 +00:00
2020-04-24 05:05:09 +00:00
2020-03-06 21:28:58 +00:00
2020-02-26 16:10:21 +00:00
2020-03-24 04:45:23 +00:00
2019-12-14 00:37:39 +00:00
2020-04-28 20:21:15 +00:00
2020-02-15 00:40:35 +00:00
2020-04-28 20:21:15 +00:00
2020-04-28 20:21:15 +00:00
2020-04-28 20:21:15 +00:00
2020-04-28 20:21:15 +00:00
2020-03-15 16:41:19 +00:00
2020-04-29 15:39:54 +00:00
2020-04-29 13:32:55 +00:00
2020-04-28 20:21:15 +00:00
2020-04-10 22:18:38 +00:00
2020-04-29 16:12:17 +00:00
2020-04-28 20:21:15 +00:00
2020-04-29 16:12:17 +00:00
2020-04-23 00:40:09 +00:00
2019-12-11 16:22:58 +00:00
2020-04-28 11:46:25 +00:00
2020-03-26 02:18:50 +00:00
2020-04-20 18:28:41 +00:00
2020-03-06 20:48:04 +00:00
2019-12-05 11:01:20 +00:00
2020-02-26 16:10:21 +00:00
2020-03-26 18:37:41 +00:00
2020-03-18 21:10:05 +00:00
2020-04-29 00:26:20 +00:00
2020-04-23 00:40:09 +00:00
2019-12-12 05:22:54 +00:00
2020-03-06 21:43:07 +00:00
2020-02-28 17:03:02 +00:00
2020-04-23 00:46:36 +00:00
2020-01-31 17:29:47 +00:00
2020-04-28 20:21:15 +00:00
2020-03-11 15:53:36 +00:00
2020-04-28 20:21:15 +00:00
2020-01-28 03:45:27 +00:00
2020-01-25 00:40:42 +00:00
2020-01-25 00:40:42 +00:00
2020-04-28 20:21:15 +00:00
2020-04-28 16:21:09 +00:00
2019-12-14 00:37:39 +00:00
2019-12-11 20:45:45 +00:00
2019-12-11 20:45:45 +00:00
2019-12-11 20:45:45 +00:00
2020-04-14 23:02:46 +00:00
2019-12-04 05:56:22 +00:00
2020-04-28 20:56:43 +00:00
2020-02-14 05:59:23 +00:00
2019-12-10 19:10:22 +00:00
2019-12-04 05:56:22 +00:00
2019-12-04 05:56:22 +00:00
2019-12-04 05:56:22 +00:00
2020-01-28 20:16:35 +00:00
2020-04-28 14:35:48 +00:00
2020-04-28 20:21:15 +00:00
2020-04-09 20:57:42 +00:00
2020-04-29 16:49:01 +00:00
2020-04-27 21:05:57 +00:00
2020-02-22 20:49:20 +00:00
2020-03-11 15:53:36 +00:00
2020-02-12 03:12:03 +00:00
2020-02-12 03:12:03 +00:00
2019-12-04 23:27:23 +00:00
2020-04-28 20:21:15 +00:00
2020-04-27 14:19:37 +00:00
2020-03-21 01:24:53 +00:00
2019-12-11 16:22:58 +00:00
2020-03-05 12:28:18 +00:00
2020-03-27 03:52:56 +00:00
2020-03-27 03:52:56 +00:00
2020-02-07 22:37:04 +00:00
2020-02-07 22:37:04 +00:00
2020-04-28 20:21:15 +00:00
2020-02-28 10:50:27 +00:00
2020-04-24 04:22:46 +00:00
2020-04-28 19:04:03 +00:00
2020-02-26 16:10:21 +00:00
2020-04-14 03:07:23 +00:00
2020-04-28 20:21:15 +00:00
2019-12-10 14:51:44 +00:00
2020-02-20 16:42:15 +00:00
2020-02-20 16:42:15 +00:00
2019-12-10 14:53:26 +00:00
2019-12-10 14:53:26 +00:00
2020-02-12 10:49:41 +00:00
2020-02-13 12:50:15 +00:00
2020-04-27 21:05:57 +00:00
2020-04-22 17:43:31 +00:00
2020-01-24 22:34:22 +00:00
2019-12-04 16:06:45 +00:00
2019-12-04 16:06:45 +00:00
2020-01-30 21:46:41 +00:00
2020-04-16 14:46:12 +00:00
2020-04-23 22:18:56 +00:00
2020-03-18 17:28:13 +00:00
2020-04-08 11:20:59 +00:00
2019-12-31 11:52:43 +00:00
2020-04-23 21:20:25 +00:00
2020-03-16 20:32:02 +00:00
2020-03-16 20:32:02 +00:00
2020-04-27 17:22:07 +00:00
2019-12-23 19:46:27 +00:00
2020-03-23 22:06:37 +00:00
2019-12-11 20:45:45 +00:00
2020-03-12 23:36:59 +00:00
2019-12-10 14:51:44 +00:00
2019-12-10 14:51:44 +00:00
2020-04-22 10:56:55 +00:00
2020-04-22 10:56:55 +00:00
2020-04-22 10:56:55 +00:00
2020-04-28 20:21:15 +00:00
2020-03-03 16:29:30 +00:00
2019-12-11 20:45:45 +00:00
2020-01-18 02:37:48 +00:00
2020-04-20 16:39:40 +00:00
2020-04-20 16:39:40 +00:00
2020-01-18 02:37:48 +00:00
2020-03-10 19:02:45 +00:00
2020-04-23 14:33:15 +00:00
2020-03-06 20:48:04 +00:00
2020-03-04 19:22:45 +00:00
2020-04-27 13:40:31 +00:00
2020-04-27 13:40:31 +00:00
2020-04-27 13:40:31 +00:00
2020-04-28 20:21:15 +00:00
2020-03-26 18:37:41 +00:00
2019-12-19 20:54:32 +00:00
2020-01-27 10:19:07 +00:00
2019-12-10 19:10:22 +00:00
2020-04-28 20:56:43 +00:00
2020-04-27 23:46:53 +00:00
2020-01-10 17:17:59 +00:00
2019-12-11 20:45:45 +00:00
2020-02-05 13:49:38 +00:00
2020-04-27 21:05:57 +00:00
2020-04-27 21:05:57 +00:00
2020-04-28 19:04:03 +00:00
2020-04-29 15:39:54 +00:00
2020-04-21 23:55:47 +00:00
2020-03-19 18:23:18 +00:00
2019-12-11 20:45:45 +00:00
2019-12-11 20:45:45 +00:00
2019-12-11 20:45:45 +00:00
2020-03-23 22:06:37 +00:00
2020-02-26 16:10:21 +00:00
2020-02-19 21:52:37 +00:00
2020-04-28 00:10:51 +00:00
2020-04-28 20:49:56 +00:00
2020-04-08 17:44:03 +00:00
2020-03-30 19:23:31 +00:00
2020-03-12 04:21:48 +00:00
2020-04-28 20:21:15 +00:00
2020-04-23 22:18:56 +00:00
2020-02-26 13:27:14 +00:00
2020-02-26 13:27:14 +00:00
2020-03-03 19:46:00 +00:00
2019-12-05 05:49:24 +00:00
2019-12-05 05:49:24 +00:00
2020-04-07 23:07:24 +00:00
2020-04-07 23:07:24 +00:00
2019-12-10 19:10:22 +00:00
2020-04-28 20:56:43 +00:00
2019-12-10 19:10:22 +00:00
2020-04-28 20:56:43 +00:00
2019-12-14 00:20:58 +00:00
2019-12-04 05:56:22 +00:00
2020-03-06 20:48:04 +00:00
2020-04-28 20:56:43 +00:00
2019-12-11 20:45:45 +00:00
2019-12-11 16:22:58 +00:00
2020-01-19 23:47:41 +00:00