diff --git a/components/script/dom/baseaudiocontext.rs b/components/script/dom/baseaudiocontext.rs index 2af2cf1fb0f..bbaafbb48e6 100644 --- a/components/script/dom/baseaudiocontext.rs +++ b/components/script/dom/baseaudiocontext.rs @@ -317,23 +317,23 @@ impl BaseAudioContextMethods for BaseAudioContext { } /// - fn Destination(&self) -> DomRoot { + fn Destination(&self, can_gc: CanGc) -> DomRoot { let global = self.global(); self.destination.or_init(|| { let mut options = AudioNodeOptions::empty(); options.channelCount = Some(self.channel_count); options.channelCountMode = Some(ChannelCountMode::Explicit); options.channelInterpretation = Some(ChannelInterpretation::Speakers); - AudioDestinationNode::new(&global, self, &options, CanGc::note()) + AudioDestinationNode::new(&global, self, &options, can_gc) }) } /// - fn Listener(&self) -> DomRoot { + fn Listener(&self, can_gc: CanGc) -> DomRoot { let global = self.global(); let window = global.as_window(); self.listener - .or_init(|| AudioListener::new(window, self, CanGc::note())) + .or_init(|| AudioListener::new(window, self, can_gc)) } // https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-onstatechange diff --git a/components/script_bindings/codegen/Bindings.conf b/components/script_bindings/codegen/Bindings.conf index 6d1afdd4789..552f31965ee 100644 --- a/components/script_bindings/codegen/Bindings.conf +++ b/components/script_bindings/codegen/Bindings.conf @@ -29,7 +29,7 @@ DOMInterfaces = { 'BaseAudioContext': { 'inRealms': ['DecodeAudioData', 'Resume', 'ParseFromString', 'GetBounds', 'GetClientRects'], - 'canGc': ['CreateChannelMerger', 'CreateOscillator', 'CreateStereoPanner', 'CreateGain', 'CreateIIRFilter', 'CreateBiquadFilter', 'CreateBufferSource', 'CreateAnalyser', 'CreatePanner', 'CreateChannelSplitter', 'CreateBuffer', 'CreateConstantSource', 'Resume', 'DecodeAudioData'], + 'canGc': ['CreateChannelMerger', 'CreateOscillator', 'CreateStereoPanner', 'CreateGain', 'CreateIIRFilter', 'CreateBiquadFilter', 'CreateBufferSource', 'CreateAnalyser', 'CreatePanner', 'CreateChannelSplitter', 'CreateBuffer', 'CreateConstantSource', 'Resume', 'DecodeAudioData', 'Destination', 'Listener'], }, 'Blob': {