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

Issue 373613004: [ServiceWorker] Make Response class better conformance with the spec. (Closed)

Created:
6 years, 5 months ago by horo
Modified:
6 years, 5 months ago
Reviewers:
falken, haraken, tkent
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, kinuko+serviceworker, horo+watch_chromium.org, alecflett+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

[ServiceWorker] Make Response class better conformance with the spec. In current implementation Response class only supports status, statusText, and headers attributes. This change introduce type, url attributes and change the class of headers attribute from HeaderMap to Headers and make all attributes readonly. And also this change implements the logic which is defined in the spec. http://fetch.spec.whatwg.org/#response-class http://fetch.spec.whatwg.org/#response This cl depends on http://crrev.com/329853012 and http://crrev.com/370733002 BUG=373120 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177793 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177817

Patch Set 1 : #

Patch Set 2 : #

Total comments: 33

Patch Set 3 : incorporated falken's comment #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : incorporated falken's comment #

Total comments: 6

Patch Set 6 : incorporated tkent's comment #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+469 lines, -396 lines) Patch
D LayoutTests/http/tests/serviceworker/headermap.html View 1 chunk +0 lines, -12 lines 0 comments Download
D LayoutTests/http/tests/serviceworker/resources/headermap-worker.js View 1 chunk +0 lines, -98 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/response-worker.js View 1 2 3 4 1 chunk +124 lines, -18 lines 0 comments Download
M Source/bindings/core/v8/Dictionary.h View 1 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
M Source/bindings/core/v8/Dictionary.cpp View 1 2 3 4 5 6 2 chunks +0 lines, -11 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 5 6 2 chunks +2 lines, -5 lines 0 comments Download
M Source/modules/serviceworkers/FetchManager.cpp View 1 2 chunks +3 lines, -1 line 0 comments Download
A Source/modules/serviceworkers/FetchResponseData.h View 1 2 3 4 5 1 chunk +66 lines, -0 lines 0 comments Download
A Source/modules/serviceworkers/FetchResponseData.cpp View 1 2 3 1 chunk +107 lines, -0 lines 0 comments Download
D Source/modules/serviceworkers/HeaderMap.h View 1 chunk +0 lines, -47 lines 0 comments Download
D Source/modules/serviceworkers/HeaderMap.cpp View 1 chunk +0 lines, -93 lines 0 comments Download
D Source/modules/serviceworkers/HeaderMap.idl View 1 chunk +0 lines, -28 lines 0 comments Download
D Source/modules/serviceworkers/HeaderMapForEachCallback.h View 1 chunk +0 lines, -23 lines 0 comments Download
D Source/modules/serviceworkers/HeaderMapForEachCallback.idl View 1 chunk +0 lines, -8 lines 0 comments Download
M Source/modules/serviceworkers/Response.h View 1 2 3 2 chunks +19 lines, -16 lines 0 comments Download
M Source/modules/serviceworkers/Response.cpp View 1 2 3 4 5 1 chunk +128 lines, -22 lines 0 comments Download
M Source/modules/serviceworkers/Response.idl View 1 1 chunk +14 lines, -10 lines 0 comments Download
M Source/modules/serviceworkers/ResponseInit.h View 1 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
horo
falken@ Could you please review this?
6 years, 5 months ago (2014-07-07 02:15:51 UTC) #1
falken
looking good https://codereview.chromium.org/373613004/diff/140001/LayoutTests/http/tests/serviceworker/resources/response-worker.js File LayoutTests/http/tests/serviceworker/resources/response-worker.js (right): https://codereview.chromium.org/373613004/diff/140001/LayoutTests/http/tests/serviceworker/resources/response-worker.js#newcode6 LayoutTests/http/tests/serviceworker/resources/response-worker.js:6: assert_equals(response.url, '', 'Response.url should not be set'); ...
6 years, 5 months ago (2014-07-07 08:10:41 UTC) #2
horo
https://codereview.chromium.org/373613004/diff/140001/LayoutTests/http/tests/serviceworker/resources/response-worker.js File LayoutTests/http/tests/serviceworker/resources/response-worker.js (right): https://codereview.chromium.org/373613004/diff/140001/LayoutTests/http/tests/serviceworker/resources/response-worker.js#newcode6 LayoutTests/http/tests/serviceworker/resources/response-worker.js:6: assert_equals(response.url, '', 'Response.url should not be set'); On 2014/07/07 ...
6 years, 5 months ago (2014-07-07 10:19:44 UTC) #3
falken
lgtm if comments are addressed https://codereview.chromium.org/373613004/diff/140001/LayoutTests/http/tests/serviceworker/resources/response-worker.js File LayoutTests/http/tests/serviceworker/resources/response-worker.js (right): https://codereview.chromium.org/373613004/diff/140001/LayoutTests/http/tests/serviceworker/resources/response-worker.js#newcode110 LayoutTests/http/tests/serviceworker/resources/response-worker.js:110: obj[name] = 'a'; On ...
6 years, 5 months ago (2014-07-08 03:56:24 UTC) #4
horo
https://codereview.chromium.org/373613004/diff/140001/Source/modules/serviceworkers/Response.cpp File Source/modules/serviceworkers/Response.cpp (right): https://codereview.chromium.org/373613004/diff/140001/Source/modules/serviceworkers/Response.cpp#newcode67 Source/modules/serviceworkers/Response.cpp:67: if (!r->m_response->headerList()->has("Content-Type") && !body->type().isEmpty()) On 2014/07/08 03:56:24, falken wrote: ...
6 years, 5 months ago (2014-07-08 05:04:44 UTC) #5
horo
haraken@ Could you please review Source/bindings/core/v8/Dictionary.*?
6 years, 5 months ago (2014-07-08 07:45:26 UTC) #6
haraken
bindings/ LGTM.
6 years, 5 months ago (2014-07-08 08:18:21 UTC) #7
horo
tkent@ Could you please review Response.idl as API owner?
6 years, 5 months ago (2014-07-08 08:25:55 UTC) #8
tkent
> [ServiceWorker] Make Response class better conformance with the spec. > > http://fetch.spec.whatwg.org/#response-class > http://fetch.spec.whatwg.org/#response ...
6 years, 5 months ago (2014-07-08 08:40:24 UTC) #9
falken
https://codereview.chromium.org/373613004/diff/260001/Source/modules/serviceworkers/ResponseInit.h File Source/modules/serviceworkers/ResponseInit.h (right): https://codereview.chromium.org/373613004/diff/260001/Source/modules/serviceworkers/ResponseInit.h#newcode33 Source/modules/serviceworkers/ResponseInit.h:33: unsigned short m_status; On 2014/07/08 08:40:23, tkent wrote: > ...
6 years, 5 months ago (2014-07-08 08:51:20 UTC) #10
tkent
https://codereview.chromium.org/373613004/diff/260001/Source/modules/serviceworkers/ResponseInit.h File Source/modules/serviceworkers/ResponseInit.h (right): https://codereview.chromium.org/373613004/diff/260001/Source/modules/serviceworkers/ResponseInit.h#newcode33 Source/modules/serviceworkers/ResponseInit.h:33: unsigned short m_status; On 2014/07/08 08:51:20, falken wrote: > ...
6 years, 5 months ago (2014-07-08 08:56:19 UTC) #11
horo
> Please write what this CL changes concretely. done https://codereview.chromium.org/373613004/diff/260001/Source/modules/serviceworkers/FetchResponseData.h File Source/modules/serviceworkers/FetchResponseData.h (right): https://codereview.chromium.org/373613004/diff/260001/Source/modules/serviceworkers/FetchResponseData.h#newcode20 Source/modules/serviceworkers/FetchResponseData.h:20: ...
6 years, 5 months ago (2014-07-08 09:13:22 UTC) #12
jochen (gone - plz use gerrit)
On 2014/07/08 at 08:51:20, falken wrote: > https://codereview.chromium.org/373613004/diff/260001/Source/modules/serviceworkers/ResponseInit.h > File Source/modules/serviceworkers/ResponseInit.h (right): > > https://codereview.chromium.org/373613004/diff/260001/Source/modules/serviceworkers/ResponseInit.h#newcode33 ...
6 years, 5 months ago (2014-07-08 09:27:42 UTC) #13
tkent
lgtm
6 years, 5 months ago (2014-07-08 12:50:37 UTC) #14
horo
The CQ bit was checked by horo@chromium.org
6 years, 5 months ago (2014-07-10 00:59:58 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/373613004/300001
6 years, 5 months ago (2014-07-10 01:00:04 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 5 months ago (2014-07-10 01:57:11 UTC) #17
commit-bot: I haz the power
Change committed as 177793
6 years, 5 months ago (2014-07-10 02:28:51 UTC) #18
Yuta Kitamura
A revert of this CL has been created in https://codereview.chromium.org/383653002/ by yutak@chromium.org. The reason for ...
6 years, 5 months ago (2014-07-10 05:12:39 UTC) #19
horo
Reopened. I disabled these tests. https://src.chromium.org/viewvc/chrome?revision=282309&view=revision I will re-enable the tests after this patch will ...
6 years, 5 months ago (2014-07-10 11:30:10 UTC) #20
horo
The CQ bit was checked by horo@chromium.org
6 years, 5 months ago (2014-07-10 11:30:27 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/373613004/300001
6 years, 5 months ago (2014-07-10 11:30:40 UTC) #22
commit-bot: I haz the power
6 years, 5 months ago (2014-07-10 11:31:19 UTC) #23
Message was sent while issue was closed.
Change committed as 177817

Powered by Google App Engine
This is Rietveld 408576698