mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Make throw_dom_exception take a &GlobalScope
This commit is contained in:
parent
ae6af5172b
commit
896d8d4781
3 changed files with 10 additions and 10 deletions
|
@ -973,9 +973,8 @@ impl XMLHttpRequest {
|
|||
if self.ready_state.get() == XMLHttpRequestState::HeadersReceived {
|
||||
self.ready_state.set(XMLHttpRequestState::Loading);
|
||||
}
|
||||
let global = self.global();
|
||||
let event = Event::new(
|
||||
global.r().as_global_scope(),
|
||||
&self.global_scope(),
|
||||
atom!("readystatechange"),
|
||||
EventBubbles::DoesNotBubble,
|
||||
EventCancelable::Cancelable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue