Skip to content

Commit

Permalink
servo: Merge #13485 - Make readystatechange fire more often (fixes #1…
Browse files Browse the repository at this point in the history
…3481) (from mathieuh:xhr-event); r=jdm

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

---
<!-- 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 #13481 (github issue number if applicable).

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: d42235ee905acf6bea7f5983c77124b8be9656fc

UltraBlame original commit: a77c94d6a1d5906fe01a690c3a9564379239afff
  • Loading branch information
marco-c committed Oct 1, 2019
1 parent b026f3b commit cfe4724
Showing 1 changed file with 54 additions and 2 deletions.
56 changes: 54 additions & 2 deletions servo/components/script/dom/xmlhttprequest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7650,20 +7650,72 @@ HeadersReceived
{
self
.
change_ready_state
ready_state
.
set
(
XMLHttpRequestState
:
:
Loading
)
;
}
let
global
=
self
.
global
(
)
;
let
event
=
Event
:
:
new
(
global
.
r
(
)
atom
!
(
"
readystatechange
"
)
EventBubbles
:
:
DoesNotBubble
EventCancelable
:
:
Cancelable
)
;
event
.
fire
(
self
.
upcast
(
)
)
;
return_if_fetch_was_terminated
!
(
)
;
}
self
.
dispatch_response_progress_event
Expand Down

0 comments on commit cfe4724

Please sign in to comment.