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

Issue 1418813004: [Fetch API] Reflect spec changes of bodyUsed property (Closed)

Created:
5 years, 2 months ago by yhirano
Modified:
5 years ago
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, dglazkov+blink, kinuko+serviceworker, blink-reviews, horo+watch_chromium.org, blink-reviews-api_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Fetch API] Reflect spec changes of bodyUsed property This CL changes the meaning of |bodyUsed| property on Request and Response. This CL also changes ReadableStreamReader's behavior when released. See the links in the discussion thread for the background. Discussion: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/puUJocJ_5F4 BUG=472931 Committed: https://crrev.com/f8417d536a3bb95b93c2a5f2d5abf5a76be17c96 Cr-Commit-Position: refs/heads/master@{#361798}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : rebase #

Total comments: 12

Patch Set 6 : rebase #

Patch Set 7 : #

Total comments: 17

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 2

Patch Set 11 : #

Patch Set 12 : rebase #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+444 lines, -521 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-put.js View 2 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/body-mixin.js View 1 3 chunks +153 lines, -43 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/fetch.js View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +12 lines, -27 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/response.js View 1 2 3 4 5 6 8 chunks +13 lines, -118 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/response-content.js View 2 chunks +2 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/stream-reader.js View 1 1 chunk +13 lines, -84 lines 0 comments Download
M third_party/WebKit/Source/core/streams/ReadableStream.cpp View 1 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/streams/ReadableStreamImpl.h View 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/streams/ReadableStreamReader.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/streams/ReadableStreamReader.cpp View 1 2 3 5 chunks +27 lines, -34 lines 0 comments Download
M third_party/WebKit/Source/core/streams/ReadableStreamReaderTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +9 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/streams/ReadableStreamTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/cachestorage/Cache.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Body.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +15 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Body.cpp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +14 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h View 1 2 chunks +13 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp View 1 7 chunks +40 lines, -54 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +59 lines, -47 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp View 1 3 chunks +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchResponseData.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Request.cpp View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +11 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Response.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Response.cpp View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/Response.idl View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/RespondWithObserver.cpp View 1 2 3 4 5 6 7 2 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerResponseError.h View 1 chunk +2 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (10 generated)
yhirano
5 years, 1 month ago (2015-10-29 08:53:59 UTC) #5
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1418813004/diff/60001/third_party/WebKit/Source/core/streams/ReadableStreamReader.cpp File third_party/WebKit/Source/core/streams/ReadableStreamReader.cpp (right): https://codereview.chromium.org/1418813004/diff/60001/third_party/WebKit/Source/core/streams/ReadableStreamReader.cpp#newcode56 third_party/WebKit/Source/core/streams/ReadableStreamReader.cpp:56: resolver->resolve(closed(scriptState).v8Value()); closed may be still pending if this reader ...
5 years, 1 month ago (2015-10-30 04:50:34 UTC) #6
yhirano
https://codereview.chromium.org/1418813004/diff/60001/third_party/WebKit/Source/core/streams/ReadableStreamReader.cpp File third_party/WebKit/Source/core/streams/ReadableStreamReader.cpp (right): https://codereview.chromium.org/1418813004/diff/60001/third_party/WebKit/Source/core/streams/ReadableStreamReader.cpp#newcode56 third_party/WebKit/Source/core/streams/ReadableStreamReader.cpp:56: resolver->resolve(closed(scriptState).v8Value()); On 2015/10/30 04:50:34, tyoshino wrote: > closed may ...
5 years, 1 month ago (2015-10-30 06:00:57 UTC) #7
yhirano
ping
5 years, 1 month ago (2015-11-17 04:38:53 UTC) #8
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/1418813004/diff/100001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js File third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js (right): https://codereview.chromium.org/1418813004/diff/100001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js#newcode327 third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js:327: 'Request should not be flagged as used if ...
5 years, 1 month ago (2015-11-18 09:55:36 UTC) #9
yhirano
https://codereview.chromium.org/1418813004/diff/100001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js File third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js (right): https://codereview.chromium.org/1418813004/diff/100001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js#newcode327 third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js:327: 'Request should not be flagged as used if it ...
5 years, 1 month ago (2015-11-19 08:41:29 UTC) #10
hiroshige
https://codereview.chromium.org/1418813004/diff/140001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js File third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js (right): https://codereview.chromium.org/1418813004/diff/140001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js#newcode340 third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js:340: 'Request should not be flagged as used if it ...
5 years, 1 month ago (2015-11-19 12:50:37 UTC) #11
yhirano
https://codereview.chromium.org/1418813004/diff/140001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js File third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js (right): https://codereview.chromium.org/1418813004/diff/140001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js#newcode340 third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js:340: 'Request should not be flagged as used if it ...
5 years, 1 month ago (2015-11-19 13:19:03 UTC) #12
yhirano
+horo@ for modules/serviceworkers and modules/cachestorage.
5 years, 1 month ago (2015-11-19 13:19:34 UTC) #14
yhirano
https://codereview.chromium.org/1418813004/diff/140001/third_party/WebKit/Source/modules/cachestorage/Cache.cpp File third_party/WebKit/Source/modules/cachestorage/Cache.cpp (right): https://codereview.chromium.org/1418813004/diff/140001/third_party/WebKit/Source/modules/cachestorage/Cache.cpp#newcode499 third_party/WebKit/Source/modules/cachestorage/Cache.cpp:499: // availability. On 2015/11/19 13:19:03, yhirano wrote: > On ...
5 years, 1 month ago (2015-11-19 14:17:15 UTC) #15
yhirano
On 2015/11/19 13:19:34, yhirano wrote: > +horo@ for modules/serviceworkers and modules/cachestorage. Also for third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerResponseError.h.
5 years, 1 month ago (2015-11-19 14:28:30 UTC) #16
hiroshige
lgtm. https://codereview.chromium.org/1418813004/diff/200001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1418813004/diff/200001/tools/metrics/histograms/histograms.xml#newcode73325 tools/metrics/histograms/histograms.xml:73325: + <int value="9" label="ErrorBodyLocked"/> Oh, I found WebServiceWorkerResponseErrorResponseTypeOpaqueRedirect ...
5 years, 1 month ago (2015-11-23 18:59:35 UTC) #17
yhirano
https://codereview.chromium.org/1418813004/diff/200001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1418813004/diff/200001/tools/metrics/histograms/histograms.xml#newcode73325 tools/metrics/histograms/histograms.xml:73325: + <int value="9" label="ErrorBodyLocked"/> On 2015/11/23 18:59:35, hiroshige (slow) ...
5 years ago (2015-11-25 04:43:01 UTC) #18
yhirano
horo: ping
5 years ago (2015-11-25 04:43:08 UTC) #19
horo
lgtm
5 years ago (2015-11-25 05:16:08 UTC) #20
yhirano
+mpearson@ for histograms.xml
5 years ago (2015-11-25 06:32:38 UTC) #22
Mark P
histograms.xml lgtm
5 years ago (2015-11-25 19:00:51 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418813004/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418813004/260001
5 years ago (2015-11-26 01:39:15 UTC) #26
commit-bot: I haz the power
Committed patchset #13 (id:260001)
5 years ago (2015-11-26 02:38:20 UTC) #28
commit-bot: I haz the power
5 years ago (2015-11-26 02:39:16 UTC) #30
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/f8417d536a3bb95b93c2a5f2d5abf5a76be17c96
Cr-Commit-Position: refs/heads/master@{#361798}

Powered by Google App Engine
This is Rietveld 408576698