diff --git a/servo/components/script/dom/xmlhttprequest.rs b/servo/components/script/dom/xmlhttprequest.rs index a1d0529366b58..c84df0e7228ba 100644 --- a/servo/components/script/dom/xmlhttprequest.rs +++ b/servo/components/script/dom/xmlhttprequest.rs @@ -7650,7 +7650,9 @@ HeadersReceived { self . -change_ready_state +ready_state +. +set ( XMLHttpRequestState : @@ -7658,12 +7660,62 @@ 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