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

Issue 1030613002: [bindings] Make XMLHttpRequest.send() use the generated binding code over the custom one. (Closed)

Created:
5 years, 9 months ago by vivekg_samsung
Modified:
5 years, 9 months ago
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, Inactive, tyoshino+watch_chromium.org, vivekg_samsung
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[bindings] Make XMLHttpRequest.send() use the generated binding code over the custom one. The specification [1] defines the XMLHttpRequest interface with send method specifications which accept |ArrayBuffer|, |ArrayBufferView|, |Blob|, |Document|, |String| Or |FormData| argument to be passed as data. MDN link [2] specifies about the same usage. Considering the support of Union types by the bindings code generator, using the same and removing the usage of custom bindings. BUG=345519 [1] https://xhr.spec.whatwg.org/ [2] https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#send() Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192414

Patch Set 1 #

Patch Set 2 : Cover both paths for InspectorInstrumentation #

Total comments: 8

Patch Set 3 : Clear HTMLDocument confusion. #

Total comments: 1

Patch Set 4 : Fixed InspectorInstrumentation calls #

Patch Set 5 : Test added #

Patch Set 6 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -63 lines) Patch
A LayoutTests/http/tests/xmlhttprequest/send-object-tostring-check.html View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/xmlhttprequest/send-object-tostring-check-expected.txt View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M Source/bindings/core/v8/custom/V8XMLHttpRequestCustom.cpp View 1 chunk +0 lines, -53 lines 0 comments Download
M Source/core/xmlhttprequest/XMLHttpRequest.h View 1 2 3 chunks +8 lines, -6 lines 0 comments Download
M Source/core/xmlhttprequest/XMLHttpRequest.cpp View 1 2 3 2 chunks +39 lines, -0 lines 0 comments Download
M Source/core/xmlhttprequest/XMLHttpRequest.idl View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (4 generated)
vivekg
PTAL, thanks.
5 years, 9 months ago (2015-03-23 11:22:01 UTC) #2
Jens Widell
TR specifications are historical monuments, and not to be taken literally. :-) A more relevant ...
5 years, 9 months ago (2015-03-23 11:41:58 UTC) #4
yhirano
Thanks for doing this! https://codereview.chromium.org/1030613002/diff/20001/Source/core/xmlhttprequest/XMLHttpRequest.cpp File Source/core/xmlhttprequest/XMLHttpRequest.cpp (right): https://codereview.chromium.org/1030613002/diff/20001/Source/core/xmlhttprequest/XMLHttpRequest.cpp#newcode826 Source/core/xmlhttprequest/XMLHttpRequest.cpp:826: if (data.isHTMLDocument()) { This branch ...
5 years, 9 months ago (2015-03-23 11:50:41 UTC) #5
vivekg
On 2015/03/23 at 11:41:58, jl wrote: > TR specifications are historical monuments, and not to ...
5 years, 9 months ago (2015-03-23 11:54:05 UTC) #6
vivekg
Thank you. https://codereview.chromium.org/1030613002/diff/20001/Source/core/xmlhttprequest/XMLHttpRequest.cpp File Source/core/xmlhttprequest/XMLHttpRequest.cpp (right): https://codereview.chromium.org/1030613002/diff/20001/Source/core/xmlhttprequest/XMLHttpRequest.cpp#newcode826 Source/core/xmlhttprequest/XMLHttpRequest.cpp:826: if (data.isHTMLDocument()) { On 2015/03/23 at 11:50:41, ...
5 years, 9 months ago (2015-03-23 11:57:36 UTC) #7
Jens Widell
https://codereview.chromium.org/1030613002/diff/20001/Source/core/xmlhttprequest/XMLHttpRequest.h File Source/core/xmlhttprequest/XMLHttpRequest.h (right): https://codereview.chromium.org/1030613002/diff/20001/Source/core/xmlhttprequest/XMLHttpRequest.h#newcode44 Source/core/xmlhttprequest/XMLHttpRequest.h:44: class ArrayBufferOrArrayBufferViewOrBlobOrDocumentOrHTMLDocumentOrStringOrFormData; On 2015/03/23 11:57:36, vivekg_ wrote: > On ...
5 years, 9 months ago (2015-03-23 12:03:05 UTC) #8
vivekg
On 2015/03/23 at 12:03:05, jl wrote: > https://codereview.chromium.org/1030613002/diff/20001/Source/core/xmlhttprequest/XMLHttpRequest.h > File Source/core/xmlhttprequest/XMLHttpRequest.h (right): > > https://codereview.chromium.org/1030613002/diff/20001/Source/core/xmlhttprequest/XMLHttpRequest.h#newcode44 ...
5 years, 9 months ago (2015-03-23 12:13:42 UTC) #9
yhirano
https://codereview.chromium.org/1030613002/diff/20001/Source/core/xmlhttprequest/XMLHttpRequest.cpp File Source/core/xmlhttprequest/XMLHttpRequest.cpp (right): https://codereview.chromium.org/1030613002/diff/20001/Source/core/xmlhttprequest/XMLHttpRequest.cpp#newcode842 Source/core/xmlhttprequest/XMLHttpRequest.cpp:842: InspectorInstrumentation::willSendXMLHttpRequest(executionContext(), url()); On 2015/03/23 11:57:36, vivekg_ wrote: > On ...
5 years, 9 months ago (2015-03-23 12:44:34 UTC) #10
vivekg
On 2015/03/23 at 12:44:34, yhirano wrote: > https://codereview.chromium.org/1030613002/diff/20001/Source/core/xmlhttprequest/XMLHttpRequest.cpp > File Source/core/xmlhttprequest/XMLHttpRequest.cpp (right): > > https://codereview.chromium.org/1030613002/diff/20001/Source/core/xmlhttprequest/XMLHttpRequest.cpp#newcode842 ...
5 years, 9 months ago (2015-03-23 12:49:53 UTC) #11
tyoshino (SeeGerritForStatus)
lgtm How about adding a test to check string conversion like https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/LayoutTests/http/tests/websocket/send-object-tostring-check.html&sq=package:chromium&type=cs for WebSockets?
5 years, 9 months ago (2015-03-23 13:08:20 UTC) #12
vivekg
On 2015/03/23 at 13:08:20, tyoshino wrote: > lgtm > > How about adding a test ...
5 years, 9 months ago (2015-03-23 14:02:38 UTC) #13
yhirano
On 2015/03/23 14:02:38, vivekg_ wrote: > On 2015/03/23 at 13:08:20, tyoshino wrote: > > lgtm ...
5 years, 9 months ago (2015-03-23 14:35:16 UTC) #14
vivekg
On 2015/03/23 at 14:35:16, yhirano wrote: > On 2015/03/23 14:02:38, vivekg_ wrote: > > On ...
5 years, 9 months ago (2015-03-24 04:11:03 UTC) #15
yhirano
lgtm
5 years, 9 months ago (2015-03-24 04:19:25 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1030613002/100001
5 years, 9 months ago (2015-03-24 04:24:01 UTC) #19
haraken
LGTM
5 years, 9 months ago (2015-03-24 04:56:31 UTC) #20
tyoshino (SeeGerritForStatus)
lgtm
5 years, 9 months ago (2015-03-24 05:14:41 UTC) #21
commit-bot: I haz the power
5 years, 9 months ago (2015-03-24 05:47:07 UTC) #22
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192414

Powered by Google App Engine
This is Rietveld 408576698