mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make WebIDL constructors take a more specific global if possible (fixes #14071)
This commit is contained in:
parent
8af2327e95
commit
973f77c006
17 changed files with 50 additions and 49 deletions
|
@ -319,7 +319,7 @@ impl ServiceWorkerGlobalScope {
|
|||
}
|
||||
|
||||
fn dispatch_activate(&self) {
|
||||
let event = ExtendableEvent::new(self.upcast(), atom!("activate"), false, false);
|
||||
let event = ExtendableEvent::new(self, atom!("activate"), false, false);
|
||||
let event = (&*event).upcast::<Event>();
|
||||
self.upcast::<EventTarget>().dispatch_event(event);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue