CanGc fixes and checks in multiple files (#33836)

* CanGc fixes and checks in multiple files

Signed-off-by: L Ashwin B <lashwinib@gmail.com>

* CanGc fixes in storageevent.rs

Signed-off-by: L Ashwin B <lashwinib@gmail.com>

---------

Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
chickenleaf 2024-10-15 10:00:48 +05:30 committed by GitHub
parent 2f1862aaf5
commit 1e39787573
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 74 additions and 59 deletions

View file

@ -49,8 +49,12 @@ impl StorageEvent {
}
}
pub fn new_uninitialized(window: &Window, url: DOMString) -> DomRoot<StorageEvent> {
Self::new_uninitialized_with_proto(window, None, url, CanGc::note())
pub fn new_uninitialized(
window: &Window,
url: DOMString,
can_gc: CanGc,
) -> DomRoot<StorageEvent> {
Self::new_uninitialized_with_proto(window, None, url, can_gc)
}
fn new_uninitialized_with_proto(