Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Issue 46313002: Support the DPR header for client hints. (Closed)

Created:
7 years, 1 month ago by cbiesinger
Modified:
7 years, 1 month ago
Reviewers:
pdr, pdr.
CC:
blink-reviews, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, zoltan1
Visibility:
Public.

Description

Support the DPR header for client hints. As specified in https://github.com/igrigorik/http-client-hints/blob/master/draft-grigorik-http-client-hints-01.txt#L255 Similar to a DPR specification in srcset, the DPR header should cause us to divide the intrinsic height by the dpr. BUG=303863 R=pdr@chromium.org CC=yoav@yoav.ws Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=160843

Patch Set 1 #

Total comments: 8

Patch Set 2 : most comments fixed #

Patch Set 3 : add cache test part 1 #

Patch Set 4 : with cache tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -0 lines) Patch
A LayoutTests/http/tests/cache/image-with-dpr-header-cached.html View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/cache/image-with-dpr-header-cached-expected.html View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/images/image-with-dpr-header.html View 1 chunk +17 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/images/image-with-dpr-header-expected.html View 1 chunk +11 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/resources/dpr.php View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
M Source/core/fetch/ImageResource.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M Source/core/fetch/ImageResource.cpp View 1 3 chunks +10 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderImage.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
cbiesinger
7 years, 1 month ago (2013-10-25 23:54:09 UTC) #1
pdr.
This is great work. https://codereview.chromium.org/46313002/diff/1/LayoutTests/http/tests/images/image-with-dpr-header-expected.html File LayoutTests/http/tests/images/image-with-dpr-header-expected.html (right): https://codereview.chromium.org/46313002/diff/1/LayoutTests/http/tests/images/image-with-dpr-header-expected.html#newcode3 LayoutTests/http/tests/images/image-with-dpr-header-expected.html:3: <img src="http://127.0.0.1:8000/resources/square100.png" height="25" width="25"> Do ...
7 years, 1 month ago (2013-10-26 01:26:30 UTC) #2
Yoav Weiss
Awesome! Regarding the choice to use the server's DPR header to override the client's previous ...
7 years, 1 month ago (2013-10-26 12:41:24 UTC) #3
Yoav Weiss
On 2013/10/26 12:41:24, Yoav Weiss wrote: > Awesome! > > Regarding the choice to use ...
7 years, 1 month ago (2013-10-27 20:18:50 UTC) #4
pdr
https://codereview.chromium.org/46313002/diff/1/LayoutTests/http/tests/resources/dpr.php File LayoutTests/http/tests/resources/dpr.php (right): https://codereview.chromium.org/46313002/diff/1/LayoutTests/http/tests/resources/dpr.php#newcode12 LayoutTests/http/tests/resources/dpr.php:12: header("DPR: ". $dpr); On 2013/10/26 01:26:31, pdr wrote: > ...
7 years, 1 month ago (2013-10-27 21:04:38 UTC) #5
cbiesinger
All comments addressed, including a comment that the server-sent DPR header overrides srcset/srcN. Please take ...
7 years, 1 month ago (2013-10-29 00:15:57 UTC) #6
pdr.
LGTM, but I think the 304 case with different DPR headers still isn't tested. Can ...
7 years, 1 month ago (2013-10-29 02:58:18 UTC) #7
cbiesinger
On 2013/10/29 02:58:18, pdr wrote: > LGTM, but I think the 304 case with different ...
7 years, 1 month ago (2013-10-29 15:10:47 UTC) #8
cbiesinger
On 2013/10/29 15:10:47, cbiesinger wrote: > On 2013/10/29 02:58:18, pdr wrote: > > LGTM, but ...
7 years, 1 month ago (2013-10-29 15:12:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cbiesinger@chromium.org/46313002/160001
7 years, 1 month ago (2013-10-29 15:44:23 UTC) #10
commit-bot: I haz the power
7 years, 1 month ago (2013-10-29 16:44:36 UTC) #11
Message was sent while issue was closed.
Change committed as 160843

Powered by Google App Engine
This is Rietveld 408576698