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

Issue 810523002: Add POST support to XHR as well as .status and statusText support (Closed)

Created:
6 years ago by eseidel
Modified:
6 years ago
Reviewers:
esprehn
CC:
esprehn, abarth-chromium, mojo-reviews_chromium.org, ojan
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Add POST support to XHR as well as .status and statusText support Also fixed all the XHR tests to actually run and work I learned from elliot that the it function has to take a "done" argument to be treated asynchronously. My utf8 conversion is a hack, but we deleted window.TextEncoder (it was a module) when we forked. We could resurrect TextEncoder (and probably should) but I've left that for a separate change. I also augmented sky_server to have a special /echo_post handler so we can test POST requests. R=esprehn@chromium.org BUG= Committed: https://chromium.googlesource.com/external/mojo/+/5ef81d249b841f44c9593ffb0158d64c7e0febfc Committed: https://chromium.googlesource.com/external/mojo/+/6a2cfe9b98e9ecebef3508f5eb8258f942b7af29

Patch Set 1 #

Total comments: 3

Patch Set 2 : Now with post testing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -15 lines) Patch
M sky/framework/xmlhttprequest.sky View 3 chunks +44 lines, -3 lines 0 comments Download
M sky/tests/framework/xmlhttprequest/empty-responseType.sky View 1 chunk +1 line, -3 lines 0 comments Download
M sky/tests/framework/xmlhttprequest/responseType.sky View 1 chunk +3 lines, -4 lines 0 comments Download
A sky/tests/framework/xmlhttprequest/unicode-post.sky View 1 1 chunk +22 lines, -0 lines 0 comments Download
A sky/tests/framework/xmlhttprequest/unicode-post-expected.txt View 1 1 chunk +5 lines, -0 lines 0 comments Download
M sky/tests/framework/xmlhttprequest/xhr.sky View 1 chunk +0 lines, -2 lines 0 comments Download
A sky/tests/framework/xmlhttprequest/xhr-does-not-exist.sky View 1 1 chunk +26 lines, -0 lines 0 comments Download
A sky/tests/framework/xmlhttprequest/xhr-does-not-exist-expected.txt View 1 chunk +5 lines, -0 lines 0 comments Download
M sky/tests/framework/xmlhttprequest/xhr-relative.sky View 1 chunk +0 lines, -2 lines 0 comments Download
M sky/tools/skygo/sky_server.go View 1 2 chunks +6 lines, -0 lines 0 comments Download
M sky/tools/skygo/sky_server.sha1 View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
eseidel
6 years ago (2014-12-15 21:29:51 UTC) #1
eseidel
CCing matt in case he's curious to see our use of the mojo network upload ...
6 years ago (2014-12-15 21:31:52 UTC) #2
esprehn
https://codereview.chromium.org/810523002/diff/1/sky/framework/xmlhttprequest.sky File sky/framework/xmlhttprequest.sky (right): https://codereview.chromium.org/810523002/diff/1/sky/framework/xmlhttprequest.sky#newcode30 sky/framework/xmlhttprequest.sky:30: uintArray.push(charList[i].charCodeAt(0)); This doesn't make sense, the splitting above seems ...
6 years ago (2014-12-15 21:43:23 UTC) #3
esprehn
https://codereview.chromium.org/810523002/diff/1/sky/framework/xmlhttprequest.sky File sky/framework/xmlhttprequest.sky (right): https://codereview.chromium.org/810523002/diff/1/sky/framework/xmlhttprequest.sky#newcode30 sky/framework/xmlhttprequest.sky:30: uintArray.push(charList[i].charCodeAt(0)); On 2014/12/15 at 21:43:22, esprehn wrote: > This ...
6 years ago (2014-12-15 21:50:56 UTC) #4
eseidel
On 2014/12/15 21:50:56, esprehn wrote: > https://codereview.chromium.org/810523002/diff/1/sky/framework/xmlhttprequest.sky > File sky/framework/xmlhttprequest.sky (right): > > https://codereview.chromium.org/810523002/diff/1/sky/framework/xmlhttprequest.sky#newcode30 > ...
6 years ago (2014-12-15 22:11:11 UTC) #5
esprehn
lgtm
6 years ago (2014-12-16 00:08:20 UTC) #6
eseidel
Committed patchset #2 (id:20001) manually as 5ef81d249b841f44c9593ffb0158d64c7e0febfc (presubmit successful).
6 years ago (2014-12-16 00:09:55 UTC) #7
eseidel
6 years ago (2014-12-16 19:20:45 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
6a2cfe9b98e9ecebef3508f5eb8258f942b7af29 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698