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

Issue 1060033002: Implement Request.context for Fetch API (Closed)

Created:
5 years, 8 months ago by shiva.jm
Modified:
5 years, 8 months ago
Reviewers:
hiroshige, jsbell, yhirano, horo
CC:
Savago
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 27

Patch Set 2 : #

Total comments: 14

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -40 lines) Patch
M LayoutTests/http/tests/fetch/script-tests/fetch.js View 1 2 5 chunks +6 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/fetch/script-tests/request.js View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/fetch-request-resources.html View 1 2 3 8 chunks +63 lines, -34 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/fetch-request-resources-worker.js View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-iframe.html View 1 2 chunks +2 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-worker.js View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/fetch/FetchManager.cpp View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M Source/modules/fetch/FetchRequestData.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/fetch/Request.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/fetch/Request.cpp View 1 2 3 3 chunks +78 lines, -1 line 1 comment Download
M Source/modules/fetch/Request.idl View 1 2 2 chunks +8 lines, -4 lines 0 comments Download
M Source/modules/fetch/RequestTest.cpp View 1 4 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
shiva.jm
Please have a look. No method is given to set the request context, Firefox is ...
5 years, 8 months ago (2015-04-06 10:46:52 UTC) #2
jsbell
I didn't look at the implementation, just IDL and test. I'd like to see layout ...
5 years, 8 months ago (2015-04-06 17:04:15 UTC) #3
horo
Thank you for taking this issue! But pleasae add LayoutTests which check the Request.context of ...
5 years, 8 months ago (2015-04-07 00:21:25 UTC) #4
hiroshige
https://codereview.chromium.org/1060033002/diff/1/Source/modules/fetch/FetchRequestData.cpp File Source/modules/fetch/FetchRequestData.cpp (right): https://codereview.chromium.org/1060033002/diff/1/Source/modules/fetch/FetchRequestData.cpp#newcode33 Source/modules/fetch/FetchRequestData.cpp:33: request->setContext(webRequest.requestContext()); Move this above m_referrer.setURL(... to match the order ...
5 years, 8 months ago (2015-04-07 03:56:11 UTC) #5
shiva.jm
Please have a look, updated the comments and added tests. https://codereview.chromium.org/1060033002/diff/1/LayoutTests/http/tests/fetch/script-tests/request.js File LayoutTests/http/tests/fetch/script-tests/request.js (right): https://codereview.chromium.org/1060033002/diff/1/LayoutTests/http/tests/fetch/script-tests/request.js#newcode723 ...
5 years, 8 months ago (2015-04-09 09:16:23 UTC) #6
horo
lgtm with nits https://codereview.chromium.org/1060033002/diff/20001/LayoutTests/http/tests/fetch/script-tests/fetch.js File LayoutTests/http/tests/fetch/script-tests/fetch.js (right): https://codereview.chromium.org/1060033002/diff/20001/LayoutTests/http/tests/fetch/script-tests/fetch.js#newcode70 LayoutTests/http/tests/fetch/script-tests/fetch.js:70: assert_equals(request.context, ''); nit: fix indent https://codereview.chromium.org/1060033002/diff/20001/LayoutTests/http/tests/fetch/script-tests/fetch.js#newcode120 ...
5 years, 8 months ago (2015-04-09 13:27:31 UTC) #7
jsbell
lgtm as well (with horo's nits)
5 years, 8 months ago (2015-04-09 16:02:28 UTC) #8
hiroshige
https://codereview.chromium.org/1060033002/diff/1/Source/modules/fetch/Request.cpp File Source/modules/fetch/Request.cpp (right): https://codereview.chromium.org/1060033002/diff/1/Source/modules/fetch/Request.cpp#newcode37 Source/modules/fetch/Request.cpp:37: request->setContext(original->context()); On 2015/04/09 09:16:22, shiva.jm wrote: > On 2015/04/07 ...
5 years, 8 months ago (2015-04-09 17:43:22 UTC) #9
shiva.jm
Please have a look, updated the test and source files. https://codereview.chromium.org/1060033002/diff/1/Source/modules/fetch/Request.cpp File Source/modules/fetch/Request.cpp (right): https://codereview.chromium.org/1060033002/diff/1/Source/modules/fetch/Request.cpp#newcode37 ...
5 years, 8 months ago (2015-04-10 09:27:10 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1060033002/40001
5 years, 8 months ago (2015-04-10 10:20:03 UTC) #13
hiroshige
https://codereview.chromium.org/1060033002/diff/1/Source/modules/fetch/Request.cpp File Source/modules/fetch/Request.cpp (right): https://codereview.chromium.org/1060033002/diff/1/Source/modules/fetch/Request.cpp#newcode37 Source/modules/fetch/Request.cpp:37: request->setContext(original->context()); On 2015/04/10 09:27:10, shiva.jm wrote: > On 2015/04/09 ...
5 years, 8 months ago (2015-04-10 11:24:23 UTC) #14
shiva.jm
On 2015/04/10 11:24:23, hiroshige wrote: > https://codereview.chromium.org/1060033002/diff/1/Source/modules/fetch/Request.cpp > File Source/modules/fetch/Request.cpp (right): > > https://codereview.chromium.org/1060033002/diff/1/Source/modules/fetch/Request.cpp#newcode37 > ...
5 years, 8 months ago (2015-04-10 11:51:39 UTC) #16
hiroshige
> Shall we add the new tests, that are covered in > https://codereview.chromium.org/1079493002/ > for ...
5 years, 8 months ago (2015-04-10 11:54:49 UTC) #17
shiva.jm
Please have a look, updated the test and source files. also merged the changes from ...
5 years, 8 months ago (2015-04-13 06:55:07 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1060033002/60001
5 years, 8 months ago (2015-04-13 06:57:12 UTC) #21
hiroshige
lgtm.
5 years, 8 months ago (2015-04-13 08:10:48 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1060033002/60001
5 years, 8 months ago (2015-04-13 08:45:04 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://src.chromium.org/viewvc/blink?view=rev&revision=193624
5 years, 8 months ago (2015-04-13 09:52:20 UTC) #26
yhirano
5 years, 8 months ago (2015-04-14 07:07:11 UTC) #28
Message was sent while issue was closed.
https://codereview.chromium.org/1060033002/diff/60001/Source/modules/fetch/Re...
File Source/modules/fetch/Request.cpp (right):

https://codereview.chromium.org/1060033002/diff/60001/Source/modules/fetch/Re...
Source/modules/fetch/Request.cpp:58: // "3. Set |request| to a new request whose
url is |request|'s url, method
(Mainly for module/fetch reviewers) As the spec changes, this comment  should be
changed **if we want to keep it updated**, or delete it otherwise. There are
other spec text changes as well, and I'm wondering if we can / should keep the
spec comments updated in modules/fetch. What do you think?

Powered by Google App Engine
This is Rietveld 408576698