See https://github.com/w3c/web-platform-tests/pull/4928 Run test at http://w3c-test.org/XMLHttpRequest/send-entity-body-basic.htm Fail XMLHttpRequest: send() - data argument (1=2&3=4) assert_equals: expected "1=2&3=4" but got "1%2C2%2C3%2C4="... Standard: https://xhr.spec.whatwg.org/#dom-xmlhttprequest-send https://fetch.spec.whatwg.org/#bodyinit
The failing test exercises URLSearchParams constructor record<k,v> support, new URLSearchParams([[1, 2], [3, 4]]) so there's a separate&dependent issue here of handling that (along with the sequence<sequence<USVString>> variant.)
eh, the test uses nested sequence<> not records, so not dependent on issue 685754 .
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/c738672e528bf6262182e9aebf7f3b1ad3dbcee0 commit c738672e528bf6262182e9aebf7f3b1ad3dbcee0 Author: sigbjornf <sigbjornf@opera.com> Date: Fri Mar 03 13:31:45 2017 Support XMLHttpRequest.send(URLSearchParams) Update send()'s overloaded set to also include URLSearchParams, mirroring a recent BodyInit spec addition, https://fetch.spec.whatwg.org/#bodyinit R=yhirano,tyoshino BUG= 694449 Review-Url: https://codereview.chromium.org/2723583005 Cr-Commit-Position: refs/heads/master@{#454571} [add] https://crrev.com/c738672e528bf6262182e9aebf7f3b1ad3dbcee0/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/resources/echo-content.php [add] https://crrev.com/c738672e528bf6262182e9aebf7f3b1ad3dbcee0/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/send-entity-body-basic.html [add] https://crrev.com/c738672e528bf6262182e9aebf7f3b1ad3dbcee0/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/send-entity-body-charset.html [modify] https://crrev.com/c738672e528bf6262182e9aebf7f3b1ad3dbcee0/third_party/WebKit/Source/bindings/core/v8/BUILD.gn [modify] https://crrev.com/c738672e528bf6262182e9aebf7f3b1ad3dbcee0/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp [modify] https://crrev.com/c738672e528bf6262182e9aebf7f3b1ad3dbcee0/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.h [modify] https://crrev.com/c738672e528bf6262182e9aebf7f3b1ad3dbcee0/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.idl
Comment 1 by yhirano@chromium.org
, Feb 21 2017