mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
CanGc fixes from EventTarget::fire_event (#33985)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
bb4932026c
commit
ea875f0a51
35 changed files with 155 additions and 115 deletions
|
@ -714,13 +714,13 @@ impl FetchResponseListener for PrefetchContext {
|
|||
self.link
|
||||
.root()
|
||||
.upcast::<EventTarget>()
|
||||
.fire_event(atom!("error"));
|
||||
.fire_event(atom!("error"), CanGc::note());
|
||||
} else {
|
||||
// Step 2. Otherwise, fire an event named load at el.
|
||||
self.link
|
||||
.root()
|
||||
.upcast::<EventTarget>()
|
||||
.fire_event(atom!("load"));
|
||||
.fire_event(atom!("load"), CanGc::note());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -733,7 +733,7 @@ impl FetchResponseListener for PrefetchContext {
|
|||
}
|
||||
|
||||
fn submit_resource_timing(&mut self) {
|
||||
submit_timing(self)
|
||||
submit_timing(self, CanGc::note())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue