From 65c866285f69d4c26ae46e604bcc05dda1641df7 Mon Sep 17 00:00:00 2001 From: tanishka <109246904+taniishkaaa@users.noreply.github.com> Date: Sun, 20 Oct 2024 21:37:15 +0530 Subject: Multiple CanGc fixes in components/script/dom (#33924) Signed-off-by: taniishkaaa --- components/script/dom/offlineaudiocontext.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'components/script/dom/offlineaudiocontext.rs') diff --git a/components/script/dom/offlineaudiocontext.rs b/components/script/dom/offlineaudiocontext.rs index f0e2d7d1747..bbc59a7801f 100644 --- a/components/script/dom/offlineaudiocontext.rs +++ b/components/script/dom/offlineaudiocontext.rs @@ -197,7 +197,8 @@ impl OfflineAudioContextMethods for OfflineAudioContext { this.channel_count, this.length, *this.context.SampleRate(), - Some(processed_audio.as_slice())); + Some(processed_audio.as_slice()), + CanGc::note()); (*this.pending_rendering_promise.borrow_mut()).take().unwrap().resolve_native(&buffer); let global = &this.global(); let window = global.as_window(); -- cgit v1.2.3