forked from mirrors/gecko-dev
		
	 59e89cba9d
			
		
	
	
		59e89cba9d
		
	
	
	
	
		
			
			When navigating away from a document, we mute the playing media elements through the NotifyOwnerDocumentActivityChanged() notification. Sometimes, that function may notify the audio channel agent through its call to AddRemoveSelfReference() which may call UpdateAudioChannelPlayingState() and notify the agent, but when we're navigating away from the page, playingThroughTheAudioChannel will always be equal to mPlayingThroughTheAudioChannel, which causes us to not notify the audio channel agent. This patch fixes this by separating NotifyOwnerDocumentActivityChanged() from its internal consumers, and forcefully notifying the audio channel agent when we navigate away.
		
			
				
	
	
		
			2 lines
		
	
	
	
		
			61 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			2 lines
		
	
	
	
		
			61 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <audio src="audio.ogg" autoplay="true" loop>
 |