Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upXHR - Trigger readystatechange when transitioning from HEADERS_RECEIVED to DONE #3917
Conversation
hoppipolla-critic-bot
commented
Nov 6, 2014
|
Critic review: https://critic.hoppipolla.co.uk/r/3108 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
|
The fix required updating the expectation of several test. I've explained the reasoning below:
Both tests read the responseXML, which we do not support yet.
We are not sending document.cookies as of now even for same-origin request. The test expects to find the cookie, otherwise assumes we support anonymous:true and fails.
Correct behaviour.
We recreate the JSON object each time xhr.response is accessed and do not cache it (which is what the test is asserting)
Before this fix, test.done() was never called. But now since it is called , assert_equal on the event array fails since the test asserts that no "upload" events are fired, while we do. Not sure if this is a bug in the test or in our implementation.
Correct behaviour.
Correct behaviour
Correct behaviour. |
|
Filed #3919 for the JSON roundtrip thing. |
This comment has been minimized.
This comment has been minimized.
Manishearth
commented on dc02352
Nov 6, 2014
|
r+ |
This comment has been minimized.
This comment has been minimized.
jdm
replied
Nov 6, 2014
|
@bors: retry |
|
Filed #3920 for /XMLHttpRequest/send-entity-body-get-head-async.htm |
This comment has been minimized.
This comment has been minimized.
|
saw approval from Manishearth |
This comment has been minimized.
This comment has been minimized.
|
merging mukilan/servo/xhr-status-async = dc02352 into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
some tests failed: |
This comment has been minimized.
This comment has been minimized.
|
saw approval from Manishearth |
This comment has been minimized.
This comment has been minimized.
|
merging mukilan/servo/xhr-status-async = dc02352 into auto |
This comment has been minimized.
This comment has been minimized.
|
mukilan/servo/xhr-status-async = dc02352 merged ok, testing candidate = efac4658 |
This comment has been minimized.
This comment has been minimized.
|
some tests failed: |
|
In the log from buildbot:
What does the "invalid http verison" mean? I cannot reproduce this locally. |
This comment has been minimized.
This comment has been minimized.
jdm
commented on 504fdbf
Nov 7, 2014
|
r+ |
This comment has been minimized.
This comment has been minimized.
jdm
replied
Nov 7, 2014
|
@bors: retry |
This comment has been minimized.
This comment has been minimized.
|
saw approval from jdm |
This comment has been minimized.
This comment has been minimized.
|
merging mukilan/servo/xhr-status-async = 504fdbf into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
some tests failed: |
This comment has been minimized.
This comment has been minimized.
|
saw approval from jdm |
This comment has been minimized.
This comment has been minimized.
|
merging mukilan/servo/xhr-status-async = 504fdbf into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
all tests pass: |
This comment has been minimized.
This comment has been minimized.
|
fast-forwarding master to auto = 338a9c3 |
504fdbf
into
servo:master
mukilan commentedNov 6, 2014
Fixes #3877