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

Issue 1121263002: Add Accept-CH meta http-equiv support to the preloader. (Closed)

Created:
5 years, 7 months ago by Yoav Weiss
Modified:
5 years, 7 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, Nate Chapin, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add Accept-CH meta http-equiv support to the preloader. When "Accept-CH" is provided as a meta tag, in some cases the parser doesn't get to parsing it before the preloader parses out image resources and send their requests. This CL fixes that, by adding these parsing capabilities to the HTMLPreloadScanner, and enables it to add the CH preference to the PreloadRequest and the FetchRequest objects. BUG=482840 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194941

Patch Set 1 #

Patch Set 2 : Fixed crashes #

Patch Set 3 : Rebase after AcceptClientHints move #

Total comments: 4

Patch Set 4 : Review nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -22 lines) Patch
A LayoutTests/http/tests/misc/client-hints-accept-meta-preloader.html View 1 chunk +26 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/misc/client-hints-accept-meta-preloader-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/fetch/FetchRequest.h View 1 2 4 chunks +4 lines, -0 lines 0 comments Download
M Source/core/html/parser/HTMLPreloadScanner.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/parser/HTMLPreloadScanner.cpp View 1 5 chunks +23 lines, -15 lines 0 comments Download
M Source/core/html/parser/HTMLPreloadScannerTest.cpp View 1 2 3 4 chunks +40 lines, -2 lines 0 comments Download
M Source/core/html/parser/PreloadRequest.h View 1 2 3 5 chunks +12 lines, -3 lines 0 comments Download
M Source/core/html/parser/PreloadRequest.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/loader/FrameFetchContext.cpp View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
Yoav Weiss
5 years, 7 months ago (2015-05-05 08:03:31 UTC) #3
Mike West
LGTM % nits. https://codereview.chromium.org/1121263002/diff/40001/Source/core/html/parser/HTMLPreloadScannerTest.cpp File Source/core/html/parser/HTMLPreloadScannerTest.cpp (right): https://codereview.chromium.org/1121263002/diff/40001/Source/core/html/parser/HTMLPreloadScannerTest.cpp#newcode148 Source/core/html/parser/HTMLPreloadScannerTest.cpp:148: for (auto testCase: testCases) Nit: s/testCase: ...
5 years, 7 months ago (2015-05-05 15:22:37 UTC) #4
Yoav Weiss
On 2015/05/05 15:22:37, Mike West (traveling. slow.) wrote: > LGTM % nits. > > https://codereview.chromium.org/1121263002/diff/40001/Source/core/html/parser/HTMLPreloadScannerTest.cpp ...
5 years, 7 months ago (2015-05-05 16:19:44 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1121263002/60001
5 years, 7 months ago (2015-05-05 18:32:49 UTC) #8
commit-bot: I haz the power
5 years, 7 months ago (2015-05-05 21:07:02 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=194941

Powered by Google App Engine
This is Rietveld 408576698