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

Issue 2811623002: Fetch API: Add Request#cache attribute (Closed)

Created:
3 years, 8 months ago by yiyix
Modified:
3 years, 8 months ago
Reviewers:
tkent, falken, yhirano
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dglazkov+blink, haraken, kinuko+watch, varkha
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fetch API: Add Request#cache attribute Behind the run time flag FetchRequestCache, a new attribute |cache| is added into fetch request. Cache can be set to "default", "no-store", "reload", "no-cache", "force-cache" or "only-if-cached". Please refer to https://fetch.spec.whatwg.org/#requestsNote for exact definition. Note that the implementation of cache options are not completed yet. TEST=request-init-003.sub.html BUG=453190 Review-Url: https://codereview.chromium.org/2811623002 Cr-Commit-Position: refs/heads/master@{#464032} Committed: https://chromium.googlesource.com/chromium/src/+/8a82f1f36590e504b12f486df6351e78ca223097

Patch Set 1 #

Total comments: 16

Patch Set 2 : address comments #

Total comments: 5

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -22 lines) Patch
D third_party/WebKit/LayoutTests/external/wpt/fetch/api/request/request-clone.sub-expected.txt View 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/fetch/api/request/request-idl-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/fetch/api/request/request-init-003.sub-expected.txt View 1 chunk +0 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/fetch/api/request/request-structure-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-event.https-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchRequestData.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Request.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Request.cpp View 1 2 3 chunks +35 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Request.idl View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/RequestInit.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/RequestInit.cpp View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebServiceWorkerRequest.cpp View 1 3 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebURLRequest.h View 1 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRequest.h View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 74 (60 generated)
yiyix
@falken, could you please take a look at this change? Thank you.
3 years, 8 months ago (2017-04-11 05:04:24 UTC) #37
falken
The change looks good from my side. I prefer changing the "Cache" name to "CacheMode" ...
3 years, 8 months ago (2017-04-11 05:53:59 UTC) #42
yhirano
I generally prefer exposing an IDL property after adding a testable implementation. Is it possible? ...
3 years, 8 months ago (2017-04-11 06:26:52 UTC) #44
falken
Just to be clear, the IDL change is gated by a flag. There are WPT ...
3 years, 8 months ago (2017-04-11 06:40:45 UTC) #45
yhirano
Hmm, Ok... Can you put a TODO somewhere in the source code? https://codereview.chromium.org/2811623002/diff/140001/third_party/WebKit/Source/modules/fetch/RequestInit.cpp File third_party/WebKit/Source/modules/fetch/RequestInit.cpp ...
3 years, 8 months ago (2017-04-11 09:16:43 UTC) #47
yiyix
@falken and @yhirano, could you please review this new patch? https://codereview.chromium.org/2811623002/diff/140001/third_party/WebKit/Source/modules/fetch/FetchRequestData.h File third_party/WebKit/Source/modules/fetch/FetchRequestData.h (right): https://codereview.chromium.org/2811623002/diff/140001/third_party/WebKit/Source/modules/fetch/FetchRequestData.h#newcode68 ...
3 years, 8 months ago (2017-04-11 10:00:06 UTC) #48
yhirano
LGTM. All code suggestions are optional. As said in #47, please put TODO that you ...
3 years, 8 months ago (2017-04-11 14:08:36 UTC) #53
falken
lgtm nit in CL description: "Add Request#cache attribute" to be more clear https://codereview.chromium.org/2811623002/diff/160001/third_party/WebKit/Source/modules/fetch/FetchRequestData.h File third_party/WebKit/Source/modules/fetch/FetchRequestData.h ...
3 years, 8 months ago (2017-04-12 01:48:23 UTC) #54
yiyix
@falken and @yhirano: Thank you for reviewing. @tkent: could you please review changes in platform? ...
3 years, 8 months ago (2017-04-12 04:02:36 UTC) #58
tkent
lgtm
3 years, 8 months ago (2017-04-12 13:30:34 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2811623002/180001
3 years, 8 months ago (2017-04-12 14:54:08 UTC) #66
commit-bot: I haz the power
Prior attempt to commit was detected, but we were not able to check whether the ...
3 years, 8 months ago (2017-04-12 15:14:13 UTC) #69
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2811623002/180001
3 years, 8 months ago (2017-04-12 15:21:02 UTC) #71
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 15:29:18 UTC) #74
Message was sent while issue was closed.
Committed patchset #3 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/8a82f1f36590e504b12f486df635...

Powered by Google App Engine
This is Rietveld 408576698