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 upUpdate XHR send to use XMLHttpRequestBodyInit #26794
Conversation
highfive
commented
Jun 5, 2020
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jun 5, 2020
|
@bors-servo try=wpt |
Update XHR send to use XMLHttpRequestBodyInit <!-- Please describe your changes on the following line: --> FIX #26723 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
|
Opened new PR for upstreamable changes. Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#24008. |
|
@bors-servo try=wpt |
Update XHR send to use XMLHttpRequestBodyInit <!-- Please describe your changes on the following line: --> FIX #26723 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
|
Failure was #26804 |
|
@jdm r? Follow-up on the streams PR, I think this might be a quick r for you... |
| @@ -527055,42 +527055,6 @@ | |||
| } | |||
| ] | |||
| ], | |||
| "send-data-readablestream.any.js": [ | |||
This comment has been minimized.
This comment has been minimized.
jdm
Jun 8, 2020
Member
We should ensure there is a test that verifies the behaviour of xhr send when a ReadableStream argument is passed. This will make it clear on wpt.fyi if browsers have actually converged on the spec in the future.
|
Transplanted upstreamable changes to existing PR. Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#24008. |
|
@bors-servo try=wpt @jdm I've added one test to check that |
Update XHR send to use XMLHttpRequestBodyInit <!-- Please describe your changes on the following line: --> FIX #26723 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
Transplanted upstreamable changes to existing PR. Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#24008. |
| "application/xml;charset=ASCII", | ||
| "ReadableStream request keeps setRequestHeader() Content-Type and charset" | ||
| "text/plain;charset=UTF-8", | ||
| 'ReadableStream request is treated as a String request."' |
This comment has been minimized.
This comment has been minimized.
jdm
Jun 8, 2020
Member
This test doesn't verify anything about what actual bytes are present in the request due to how the readablestream object is converted to a string. I think it would be wise to do that to avoid accidental incompatibilities.
This comment has been minimized.
This comment has been minimized.
gterzian
Jun 9, 2020
•
Author
Member
Ok, thanks for checking, I think I have now added the right test, please take another look(by the way this already matches the current behavior).
|
Transplanted upstreamable changes to existing PR. Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#24008. |
|
@bors-servo try=wpt |
Update XHR send to use XMLHttpRequestBodyInit <!-- Please describe your changes on the following line: --> FIX #26723 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
|
error is |
|
@jdm r? |
|
Thanks! |
|
@bors-servo r+ |
|
|
|
|
gterzian commentedJun 5, 2020
FIX #26723
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors