Description was changed from ========== add attribute not donw BUG= ========== to ========== [WIP] Fetch ...
3 years, 8 months ago
(2017-04-10 06:55:26 UTC)
#1
Description was changed from
==========
add attribute
not donw
BUG=
==========
to
==========
[WIP] Fetch API: Add cache attribute
not donw
BUG=
==========
yiyix
The CQ bit was checked by yiyix@chromium.org to run a CQ dry run
3 years, 8 months ago
(2017-04-10 06:55:37 UTC)
#2
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/426783)
3 years, 8 months ago
(2017-04-10 08:28:57 UTC)
#5
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/418493)
3 years, 8 months ago
(2017-04-10 11:41:36 UTC)
#12
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/418536)
3 years, 8 months ago
(2017-04-10 13:48:35 UTC)
#16
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/187987) ios-device-xcode-clang on ...
3 years, 8 months ago
(2017-04-11 02:15:04 UTC)
#20
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/187990) ios-device-xcode-clang on ...
3 years, 8 months ago
(2017-04-11 02:22:41 UTC)
#25
Description was changed from ========== [WIP] Fetch API: Add cache attribute BUG= ========== to ========== ...
3 years, 8 months ago
(2017-04-11 02:39:27 UTC)
#31
Description was changed from
==========
[WIP] Fetch API: Add cache attribute
BUG=
==========
to
==========
[WIP] Fetch API: Add cache attribute
Behind the run time flag FetchRequestCache, a new attribute |cache| is added
into fetch request.
BUG=453190
==========
yiyix
The CQ bit was checked by yiyix@chromium.org to run a CQ dry run
3 years, 8 months ago
(2017-04-11 03:34:41 UTC)
#32
Description was changed from ========== [WIP] Fetch API: Add cache attribute Behind the run time ...
3 years, 8 months ago
(2017-04-11 04:31:26 UTC)
#35
Description was changed from
==========
[WIP] Fetch API: Add cache attribute
Behind the run time flag FetchRequestCache, a new attribute |cache| is added
into fetch request.
BUG=453190
==========
to
==========
[WIP] Fetch API: Add 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.
BUG=453190
==========
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
I generally prefer exposing an IDL property after adding a testable
implementation. Is it possible?
https://codereview.chromium.org/2811623002/diff/140001/third_party/WebKit/Sou...
File third_party/WebKit/Source/modules/fetch/FetchRequestData.h (right):
https://codereview.chromium.org/2811623002/diff/140001/third_party/WebKit/Sou...
third_party/WebKit/Source/modules/fetch/FetchRequestData.h:68: }
On 2017/04/11 05:53:59, falken wrote:
> SetCache() and Cache() are quite generic names, but I guess it's ok if it's
> obvious that FetchRequestData represents the Fetch API's Request interface.
>
> I slightly prefer changing these to SetCacheMode() and and CacheMode() as it's
> clearer to read, although it's not exactly the same as the Request interface's
> |cache| attribute. However, I'm not an OWNER of this file, so you can wait for
> yhirano's input.
>
> Question for yhirano: Is it obvious that FetchRequestData represents the DOM
> Request interface? Should this have a class-level comment?
[Set]CacheMode sounds better to me, too.
https://codereview.chromium.org/2811623002/diff/140001/third_party/WebKit/pub...
File third_party/WebKit/public/platform/WebURLRequest.h (right):
https://codereview.chromium.org/2811623002/diff/140001/third_party/WebKit/pub...
third_party/WebKit/public/platform/WebURLRequest.h:124: enum FetchRequestCache {
On 2017/04/11 05:53:59, falken wrote:
> I'm feeling FetchRequestCacheMode is clearer. There's precendence here due to
> FetchCredentialsMode.
+1
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
Just to be clear, the IDL change is gated by a flag.
There are WPT for this. This change fixes some failures. It looks like the only
failure is that FetchEvent.request.cache for a window.location.reload() should
be 'no-cache' instead of 'default'.
The plan was to incrementally get the tests passing while developing behind a
flag, and then adding more tests where there is missing coverage (and it looks
like there is a lot of missing coverage).
Would you advise we take a different approach?
yiyix
Description was changed from ========== [WIP] Fetch API: Add cache attribute Behind the run time ...
3 years, 8 months ago
(2017-04-11 07:14:28 UTC)
#46
Description was changed from
==========
[WIP] Fetch API: Add 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.
BUG=453190
==========
to
==========
Fetch API: Add 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.
BUG=453190
==========
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
@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
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
Description was changed from ========== Fetch API: Add cache attribute Behind the run time flag ...
3 years, 8 months ago
(2017-04-12 06:34:12 UTC)
#59
Description was changed from
==========
Fetch API: Add 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.
BUG=453190
==========
to
==========
Fetch API: Add Request#cache attribut
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
==========
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 8 months ago
(2017-04-12 06:34:19 UTC)
#60
3 years, 8 months ago
(2017-04-12 06:34:20 UTC)
#61
Dry run: This issue passed the CQ dry run.
yiyix
Description was changed from ========== Fetch API: Add Request#cache attribut Behind the run time flag ...
3 years, 8 months ago
(2017-04-12 06:34:35 UTC)
#62
Description was changed from
==========
Fetch API: Add Request#cache attribut
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
==========
to
==========
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
==========
tkent
lgtm
3 years, 8 months ago
(2017-04-12 13:30:34 UTC)
#63
lgtm
yiyix
The CQ bit was checked by yiyix@chromium.org
3 years, 8 months ago
(2017-04-12 14:53:42 UTC)
#64
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
Prior attempt to commit was detected, but we were not able to check whether the
issue was successfully committed. Please check Git history manually and re-check
CQ or close this issue as needed.
yiyix
The CQ bit was checked by yiyix@chromium.org
3 years, 8 months ago
(2017-04-12 15:20:25 UTC)
#70
CQ is committing da patch. Bot data: {"patchset_id": 180001, "attempt_start_ts": 1492010425189710, "parent_rev": "80e3eb904ef28e2491b831099597fc05347845ae", "commit_rev": "8a82f1f36590e504b12f486df6351e78ca223097"}
3 years, 8 months ago
(2017-04-12 15:28:18 UTC)
#72
CQ is committing da patch.
Bot data: {"patchset_id": 180001, "attempt_start_ts": 1492010425189710,
"parent_rev": "80e3eb904ef28e2491b831099597fc05347845ae", "commit_rev":
"8a82f1f36590e504b12f486df6351e78ca223097"}
commit-bot: I haz the power
Description was changed from ========== Fetch API: Add Request#cache attribute Behind the run time flag ...
3 years, 8 months ago
(2017-04-12 15:29:17 UTC)
#73
Message was sent while issue was closed.
Description was changed from
==========
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
==========
to
==========
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/+/8a82f1f36590e504b12f486df635...
==========
commit-bot: I haz the power
Committed patchset #3 (id:180001) as https://chromium.googlesource.com/chromium/src/+/8a82f1f36590e504b12f486df6351e78ca223097
3 years, 8 months ago
(2017-04-12 15:29:18 UTC)
#74
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
Base URL:
Comments: 21