aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/audiotracklist.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/audiotracklist.rs')
-rw-r--r--components/script/dom/audiotracklist.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/audiotracklist.rs b/components/script/dom/audiotracklist.rs
index 93b1c5ec651..b9f62c4b72e 100644
--- a/components/script/dom/audiotracklist.rs
+++ b/components/script/dom/audiotracklist.rs
@@ -15,6 +15,7 @@ use crate::dom::bindings::str::DOMString;
use crate::dom::eventtarget::EventTarget;
use crate::dom::htmlmediaelement::HTMLMediaElement;
use crate::dom::window::Window;
+use crate::script_runtime::CanGc;
use crate::task_source::TaskSource;
#[dom_struct]
@@ -96,7 +97,7 @@ impl AudioTrackList {
let _ = source.queue_with_canceller(
task!(media_track_change: move || {
let this = this.root();
- this.upcast::<EventTarget>().fire_event(atom!("change"));
+ this.upcast::<EventTarget>().fire_event(atom!("change"), CanGc::note());
}),
&canceller,
);