From 781fef9c92720d510135f85d54f4ab42a4b3d72f Mon Sep 17 00:00:00 2001 From: Daniel Le Date: Mon, 21 Sep 2020 17:41:26 +0000 Subject: [PATCH] Bug 1659244 - Drop the audio wakelock when the AudioDestinationNode is notified that it is not audible. r=pehrsons,alwu Differential Revision: https://phabricator.services.mozilla.com/D90434 --- dom/media/webaudio/AudioDestinationNode.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dom/media/webaudio/AudioDestinationNode.cpp b/dom/media/webaudio/AudioDestinationNode.cpp index 837959518281..2812e9775695 100644 --- a/dom/media/webaudio/AudioDestinationNode.cpp +++ b/dom/media/webaudio/AudioDestinationNode.cpp @@ -639,6 +639,7 @@ void AudioDestinationNode::NotifyAudibleStateChanged(bool aAudible) { if (IsCapturingAudio()) { StopAudioCapturingTrack(); } + ReleaseAudioWakeLockIfExists(); return; }