mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
CanGc fixes in components/script/dom (#33880)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
72ff89620b
commit
cd7b66be58
12 changed files with 59 additions and 33 deletions
|
@ -384,7 +384,7 @@ impl ServiceWorkerGlobalScope {
|
|||
scope.execute_script(DOMString::from(source));
|
||||
}
|
||||
|
||||
global.dispatch_activate();
|
||||
global.dispatch_activate(can_gc);
|
||||
let reporter_name = format!("service-worker-reporter-{}", random::<u64>());
|
||||
scope
|
||||
.upcast::<GlobalScope>()
|
||||
|
@ -478,8 +478,8 @@ impl ServiceWorkerGlobalScope {
|
|||
})
|
||||
}
|
||||
|
||||
fn dispatch_activate(&self) {
|
||||
let event = ExtendableEvent::new(self, atom!("activate"), false, false);
|
||||
fn dispatch_activate(&self, can_gc: CanGc) {
|
||||
let event = ExtendableEvent::new(self, atom!("activate"), false, false, can_gc);
|
||||
let event = (*event).upcast::<Event>();
|
||||
self.upcast::<EventTarget>().dispatch_event(event);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue