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

Issue 1969333002: [Fetch API] |(new Response(stream)).body| should return |stream| (Closed)

Created:
4 years, 7 months ago by yhirano
Modified:
4 years, 7 months ago
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Fetch API] |(new Response(stream)).body| should return |stream| This change is behind responseConstructedWithReadableStream and responseBodyWithV8ExtraStream. BUG=596832 Committed: https://crrev.com/0480aa344bc4fff82247d862d00ae872334200b2 Cr-Commit-Position: refs/heads/master@{#393832}

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : #

Total comments: 4

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -107 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/response-stream-construction.js View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/streams/ReadableStream.js View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/streams/ReadableStreamOperations.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/streams/ReadableStreamOperations.cpp View 1 2 3 4 5 6 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/streams/ReadableStreamOperationsTest.cpp View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/cachestorage/CacheTest.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h View 1 2 3 4 4 chunks +5 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp View 1 2 3 4 5 6 7 8 8 chunks +83 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp View 1 2 3 4 5 6 7 8 5 chunks +146 lines, -46 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchResponseData.cpp View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Response.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/Response.cpp View 1 2 3 4 5 6 7 8 4 chunks +22 lines, -17 lines 0 comments Download

Messages

Total messages: 34 (12 generated)
yhirano
4 years, 7 months ago (2016-05-12 06:20:49 UTC) #2
tyoshino (SeeGerritForStatus)
reviewed except for tests https://codereview.chromium.org/1969333002/diff/20001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp File third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp (right): https://codereview.chromium.org/1969333002/diff/20001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp#newcode113 third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp:113: ScriptState::Scope scope(scriptState); is it ok ...
4 years, 7 months ago (2016-05-12 07:23:25 UTC) #3
yhirano
https://codereview.chromium.org/1969333002/diff/20001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp File third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp (right): https://codereview.chromium.org/1969333002/diff/20001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp#newcode113 third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp:113: ScriptState::Scope scope(scriptState); On 2016/05/12 07:23:25, tyoshino wrote: > is ...
4 years, 7 months ago (2016-05-12 08:13:12 UTC) #4
yhirano
+nhiroki for modules/cachestorage
4 years, 7 months ago (2016-05-12 08:14:31 UTC) #6
haraken
https://codereview.chromium.org/1969333002/diff/40001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp File third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp (right): https://codereview.chromium.org/1969333002/diff/40001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp#newcode113 third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp:113: ASSERT(ReadableStreamOperations::isReadableStream(scriptState, stream)); Use DCHECK. https://codereview.chromium.org/1969333002/diff/40001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp#newcode179 third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp:179: ScriptValue reader = ...
4 years, 7 months ago (2016-05-12 08:22:57 UTC) #8
yhirano
https://codereview.chromium.org/1969333002/diff/40001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp File third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp (right): https://codereview.chromium.org/1969333002/diff/40001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp#newcode113 third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp:113: ASSERT(ReadableStreamOperations::isReadableStream(scriptState, stream)); On 2016/05/12 08:22:57, haraken wrote: > > ...
4 years, 7 months ago (2016-05-12 08:28:15 UTC) #9
nhiroki
modules/cachestorage/CacheTest.cpp lgtm
4 years, 7 months ago (2016-05-12 08:56:23 UTC) #10
haraken
V8 usage LGTM
4 years, 7 months ago (2016-05-12 13:09:38 UTC) #11
yhirano
I noticed that the comment in BodyStreamBuffer::releaseHandle (in PS3, for example) was wrong. So I ...
4 years, 7 months ago (2016-05-13 07:00:45 UTC) #12
haraken
LGTM https://codereview.chromium.org/1969333002/diff/80001/third_party/WebKit/Source/core/streams/ReadableStreamOperations.cpp File third_party/WebKit/Source/core/streams/ReadableStreamOperations.cpp (right): https://codereview.chromium.org/1969333002/diff/80001/third_party/WebKit/Source/core/streams/ReadableStreamOperations.cpp#newcode128 third_party/WebKit/Source/core/streams/ReadableStreamOperations.cpp:128: DCHECK(!result.isEmpty()); Can you use V8ScriptRunner::callExtraOrCrash to check these?
4 years, 7 months ago (2016-05-13 07:06:03 UTC) #13
yhirano
https://codereview.chromium.org/1969333002/diff/80001/third_party/WebKit/Source/core/streams/ReadableStreamOperations.cpp File third_party/WebKit/Source/core/streams/ReadableStreamOperations.cpp (right): https://codereview.chromium.org/1969333002/diff/80001/third_party/WebKit/Source/core/streams/ReadableStreamOperations.cpp#newcode128 third_party/WebKit/Source/core/streams/ReadableStreamOperations.cpp:128: DCHECK(!result.isEmpty()); On 2016/05/13 07:06:03, haraken wrote: > > Can ...
4 years, 7 months ago (2016-05-13 07:21:16 UTC) #14
haraken
On 2016/05/13 07:21:16, yhirano wrote: > https://codereview.chromium.org/1969333002/diff/80001/third_party/WebKit/Source/core/streams/ReadableStreamOperations.cpp > File third_party/WebKit/Source/core/streams/ReadableStreamOperations.cpp > (right): > > https://codereview.chromium.org/1969333002/diff/80001/third_party/WebKit/Source/core/streams/ReadableStreamOperations.cpp#newcode128 ...
4 years, 7 months ago (2016-05-13 07:24:12 UTC) #15
yhirano
On 2016/05/13 07:24:12, haraken wrote: > On 2016/05/13 07:21:16, yhirano wrote: > > > https://codereview.chromium.org/1969333002/diff/80001/third_party/WebKit/Source/core/streams/ReadableStreamOperations.cpp ...
4 years, 7 months ago (2016-05-13 07:29:46 UTC) #16
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/1969333002/diff/120001/third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp File third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp (right): https://codereview.chromium.org/1969333002/diff/120001/third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp#newcode44 third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp:44: }; not used? https://codereview.chromium.org/1969333002/diff/120001/third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp#newcode154 third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp:154: EXPECT_FALSE(buffer->isStreamDisturbed()); Leave some ...
4 years, 7 months ago (2016-05-16 05:48:54 UTC) #17
yhirano
https://codereview.chromium.org/1969333002/diff/120001/third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp File third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp (right): https://codereview.chromium.org/1969333002/diff/120001/third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp#newcode44 third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp:44: }; On 2016/05/16 05:48:53, tyoshino wrote: > not used? ...
4 years, 7 months ago (2016-05-16 06:35:37 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1969333002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1969333002/140001
4 years, 7 months ago (2016-05-16 06:36:00 UTC) #21
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp: While running git apply --index -3 -p1; error: patch ...
4 years, 7 months ago (2016-05-16 08:05:07 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1969333002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1969333002/160001
4 years, 7 months ago (2016-05-16 09:31:00 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/222216)
4 years, 7 months ago (2016-05-16 13:19:58 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1969333002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1969333002/160001
4 years, 7 months ago (2016-05-16 13:24:05 UTC) #31
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 7 months ago (2016-05-16 15:01:02 UTC) #32
commit-bot: I haz the power
4 years, 7 months ago (2016-05-16 15:02:43 UTC) #34
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/0480aa344bc4fff82247d862d00ae872334200b2
Cr-Commit-Position: refs/heads/master@{#393832}

Powered by Google App Engine
This is Rietveld 408576698