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

Issue 18883002: Add Streams API support to XMLHttpRequest (Closed)

Created:
7 years, 5 months ago by tyoshino (SeeGerritForStatus)
Modified:
7 years, 2 months ago
CC:
blink-reviews, Nils Barth (inactive), jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, kinuko+watch, haraken, Nate Chapin, do-not-use, darin (slow to review)
Visibility:
Public.

Description

Add Streams API support to XMLHttpRequest Hidden behind the --enable-experimental-webkit-features flag. Original Streams API spec is: https://dvcs.w3.org/hg/streams-api/raw-file/tip/Overview.htm How to read data from Stream in JavaScript is still under discussion at this thread http://lists.w3.org/Archives/Public/public-webapps/2013AprJun/0706.html but integration with XHR is not controversial. So, to allow APIs depending on Stream but not on JavaScript Stream read/write API to start development (e.g. Media Source Extensions API https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html), I'd like to land XHR integration part. BUG=169957 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157609

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : abarth's comments #

Patch Set 4 : abarth's comments #

Total comments: 1

Patch Set 5 : Rebase #

Patch Set 6 : Use ExceptionState #

Patch Set 7 : Fix #

Total comments: 3

Patch Set 8 : LayoutTests #

Patch Set 9 : LayoutTests #

Patch Set 10 : brace #

Patch Set 11 : LayoutTests #

Total comments: 2

Patch Set 12 : acolwell's comment #

Patch Set 13 : layouttests #

Patch Set 14 : abort only in DONE #

Patch Set 15 : Remove comment #

Patch Set 16 : CL split #

Patch Set 17 : Rebase #

Patch Set 18 : Reverted #

Patch Set 19 : Changed order of cancellation #

Total comments: 2

Patch Set 20 : kinuko's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -32 lines) Patch
M LayoutTests/fast/xmlhttprequest/xmlhttprequest-set-responsetype.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/xmlhttprequest/xmlhttprequest-set-responsetype-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
A + LayoutTests/http/tests/xmlhttprequest/response-stream.html View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -12 lines 0 comments Download
A LayoutTests/http/tests/xmlhttprequest/response-stream-abort.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +100 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/xmlhttprequest/response-stream-abort-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/xmlhttprequest/response-stream-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8XMLHttpRequestCustom.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +9 lines, -0 lines 0 comments Download
M Source/core/fileapi/Stream.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/fileapi/Stream.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/xml/XMLHttpRequest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +5 lines, -1 line 0 comments Download
M Source/core/xml/XMLHttpRequest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 9 chunks +49 lines, -17 lines 0 comments Download
M Source/core/xml/XMLHttpRequest.idl View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 32 (0 generated)
tyoshino (SeeGerritForStatus)
This CL depends on https://codereview.chromium.org/15817013/ Could you please do early-stage review?
7 years, 5 months ago (2013-07-09 07:07:01 UTC) #1
abarth-chromium
Please add a link to the spec in the description.
7 years, 5 months ago (2013-07-09 17:54:32 UTC) #2
abarth-chromium
Looks like a good start. Obviously we'll need a bunch of tests, but the implementation ...
7 years, 5 months ago (2013-07-09 17:58:21 UTC) #3
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/18883002/diff/1005/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (right): https://codereview.chromium.org/18883002/diff/1005/Source/core/xml/XMLHttpRequest.cpp#newcode373 Source/core/xml/XMLHttpRequest.cpp:373: ASSERT_NOT_REACHED(); On 2013/07/09 17:58:21, abarth wrote: > Can this ...
7 years, 5 months ago (2013-07-09 19:48:22 UTC) #4
tyoshino (SeeGerritForStatus)
On 2013/07/09 17:58:21, abarth wrote: > Looks like a good start. Obviously we'll need a ...
7 years, 5 months ago (2013-07-09 19:50:51 UTC) #5
michaeln
We have a latent desire to avoid sending bulky response data to renderers, then back ...
7 years, 5 months ago (2013-07-24 03:24:37 UTC) #6
michaeln
https://codereview.chromium.org/18883002/diff/8001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (right): https://codereview.chromium.org/18883002/diff/8001/Source/core/xml/XMLHttpRequest.cpp#newcode1194 Source/core/xml/XMLHttpRequest.cpp:1194: m_responseStream->addData(data, len); Also, it it a desired characteristic of ...
7 years, 5 months ago (2013-07-24 03:57:21 UTC) #7
michaeln
On 2013/07/24 03:57:21, michaeln wrote: > https://codereview.chromium.org/18883002/diff/8001/Source/core/xml/XMLHttpRequest.cpp > File Source/core/xml/XMLHttpRequest.cpp (right): > > https://codereview.chromium.org/18883002/diff/8001/Source/core/xml/XMLHttpRequest.cpp#newcode1194 > ...
7 years, 5 months ago (2013-07-24 03:57:45 UTC) #8
tyoshino (SeeGerritForStatus)
On 2013/07/24 03:24:37, michaeln wrote: > We have a latent desire to avoid sending bulky ...
7 years, 4 months ago (2013-08-06 19:15:02 UTC) #9
tyoshino (SeeGerritForStatus)
Rebased. Ready basically. I'm planning to implement Stream reading feature on FileReader temporarily. Wdyt Adam? ...
7 years, 4 months ago (2013-08-06 19:18:41 UTC) #10
tyoshino (SeeGerritForStatus)
On 2013/08/06 19:18:41, tyoshino wrote: > Rebased. Ready basically. > > I'm planning to implement ...
7 years, 4 months ago (2013-08-06 19:19:04 UTC) #11
abarth-chromium
I'm not sure it's worth implementing streams in this temporary way. Why not implement them ...
7 years, 4 months ago (2013-08-06 19:35:55 UTC) #12
tyoshino (SeeGerritForStatus)
On 2013/08/06 19:35:55, abarth wrote: > I'm not sure it's worth implementing streams in this ...
7 years, 4 months ago (2013-08-06 22:14:42 UTC) #13
abarth-chromium
Ok, if we're going to go with the approach of having the data flow through ...
7 years, 4 months ago (2013-08-07 00:11:13 UTC) #14
michaeln
On 2013/08/07 00:11:13, abarth wrote: > Ok, if we're going to go with the approach ...
7 years, 4 months ago (2013-08-07 00:21:24 UTC) #15
kinuko
Same comment, the way how responseBlob was added was unfortunate and it's going in the ...
7 years, 4 months ago (2013-08-07 03:46:57 UTC) #16
michaeln
On 2013/08/07 03:46:57, kinuko wrote: > Same comment, the way how responseBlob was added was ...
7 years, 4 months ago (2013-08-07 18:12:01 UTC) #17
tyoshino (SeeGerritForStatus)
On 2013/08/07 18:12:01, michaeln wrote: > Streams shouldn't need to spill to disk ever if ...
7 years, 4 months ago (2013-08-22 09:39:46 UTC) #18
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/18883002/diff/23001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (right): https://codereview.chromium.org/18883002/diff/23001/Source/core/xml/XMLHttpRequest.cpp#newcode396 Source/core/xml/XMLHttpRequest.cpp:396: return ASCIILiteral(""); On 2013/08/06 19:35:55, abarth wrote: > Don't ...
7 years, 4 months ago (2013-08-23 03:31:44 UTC) #19
tyoshino (SeeGerritForStatus)
On 2013/08/07 00:11:13, abarth wrote: > Ok, if we're going to go with the approach ...
7 years, 4 months ago (2013-08-23 03:37:38 UTC) #20
tyoshino (SeeGerritForStatus)
Rebased and added layout tests. Ready for review again.
7 years, 4 months ago (2013-08-23 03:38:20 UTC) #21
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/18883002/diff/39001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (right): https://codereview.chromium.org/18883002/diff/39001/Source/core/xml/XMLHttpRequest.cpp#newcode849 Source/core/xml/XMLHttpRequest.cpp:849: I think you need something like the following here: ...
7 years, 4 months ago (2013-08-23 23:54:01 UTC) #22
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/18883002/diff/39001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (right): https://codereview.chromium.org/18883002/diff/39001/Source/core/xml/XMLHttpRequest.cpp#newcode849 Source/core/xml/XMLHttpRequest.cpp:849: On 2013/08/23 23:54:01, acolwell wrote: > I think you ...
7 years, 3 months ago (2013-08-27 08:51:51 UTC) #23
tyoshino (SeeGerritForStatus)
On 2013/08/27 08:51:51, tyoshino wrote: > Right, thanks. I'd like to introduce and call abort() ...
7 years, 3 months ago (2013-08-29 06:40:13 UTC) #24
tyoshino (SeeGerritForStatus)
On 2013/08/29 06:40:13, tyoshino wrote: > and split BlobRegistry part of this CL into > ...
7 years, 3 months ago (2013-09-02 07:21:34 UTC) #25
tyoshino (SeeGerritForStatus)
On 2013/09/02 07:21:34, tyoshino wrote: > On 2013/08/29 06:40:13, tyoshino wrote: > > and split ...
7 years, 3 months ago (2013-09-05 09:37:57 UTC) #26
kinuko
I think this lgtm (as a stopgap for MSE) https://codereview.chromium.org/18883002/diff/65002/LayoutTests/http/tests/xmlhttprequest/response-stream-abort.html File LayoutTests/http/tests/xmlhttprequest/response-stream-abort.html (right): https://codereview.chromium.org/18883002/diff/65002/LayoutTests/http/tests/xmlhttprequest/response-stream-abort.html#newcode78 LayoutTests/http/tests/xmlhttprequest/response-stream-abort.html:78: ...
7 years, 3 months ago (2013-09-05 13:48:40 UTC) #27
tyoshino (SeeGerritForStatus)
On 2013/07/09 17:54:32, abarth wrote: > Please add a link to the spec in the ...
7 years, 3 months ago (2013-09-06 04:18:24 UTC) #28
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/18883002/diff/65002/LayoutTests/http/tests/xmlhttprequest/response-stream-abort.html File LayoutTests/http/tests/xmlhttprequest/response-stream-abort.html (right): https://codereview.chromium.org/18883002/diff/65002/LayoutTests/http/tests/xmlhttprequest/response-stream-abort.html#newcode78 LayoutTests/http/tests/xmlhttprequest/response-stream-abort.html:78: On 2013/09/05 13:48:41, kinuko wrote: > nit: maybe check ...
7 years, 3 months ago (2013-09-06 04:24:54 UTC) #29
abarth-chromium
Sorry for the delay. LGTM!
7 years, 3 months ago (2013-09-11 07:06:37 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tyoshino@chromium.org/18883002/65003
7 years, 3 months ago (2013-09-11 16:17:08 UTC) #31
commit-bot: I haz the power
7 years, 3 months ago (2013-09-11 22:33:44 UTC) #32
Message was sent while issue was closed.
Change committed as 157609

Powered by Google App Engine
This is Rietveld 408576698