aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/fontfaceset.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/fontfaceset.rs')
-rw-r--r--components/script/dom/fontfaceset.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/fontfaceset.rs b/components/script/dom/fontfaceset.rs
index fa2fae410d4..0774f2b1617 100644
--- a/components/script/dom/fontfaceset.rs
+++ b/components/script/dom/fontfaceset.rs
@@ -27,7 +27,7 @@ impl FontFaceSet {
pub fn new_inherited(global: &GlobalScope) -> Self {
FontFaceSet {
target: EventTarget::new_inherited(),
- promise: Promise::new(global),
+ promise: Promise::new(global, CanGc::note()),
}
}