Auto merge of #25651 - medimatrix:xhr-progress-timeout, r=jdm

Do not include request progress/total values on XHR timeout

<!-- Please describe your changes on the following line: -->

Do not include request progress/total values on XHR timeout as [the specification]( https://xhr.spec.whatwg.org/#request-error-steps) states that upload events when errors occur should always pass 0 for both values.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #24286

<!-- Either: -->
- [x] 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. -->
This commit is contained in:
bors-servo 2020-02-01 04:59:58 -05:00 committed by GitHub
commit e71dc9977c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 43 deletions

View file

@ -1,9 +0,0 @@
[abort-during-upload.any.html]
[XMLHttpRequest: abort() while sending data]
expected: FAIL
[abort-during-upload.any.worker.html]
[XMLHttpRequest: abort() while sending data]
expected: FAIL

View file

@ -1,5 +0,0 @@
[abort-event-order.htm]
type: testharness
[XMLHttpRequest: The abort() method: abort and loadend events]
expected: FAIL

View file

@ -1,5 +0,0 @@
[event-error-order.sub.html]
type: testharness
[XMLHttpRequest: event - error (order of events)]
expected: FAIL

View file

@ -1,9 +0,0 @@
[event-timeout-order.any.html]
[XMLHttpRequest: event - timeout (order of events)]
expected: FAIL
[event-timeout-order.any.worker.html]
[XMLHttpRequest: event - timeout (order of events)]
expected: FAIL

View file

@ -1,5 +0,0 @@
[send-timeout-events.htm]
type: testharness
[XMLHttpRequest: The send() method: timeout is not 0 ]
expected: FAIL