Bug 206524

Summary: audio element with stream never stops loading
Product: WebKit Reporter: Jonathan <jonathan>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: All   
OS: All   

Description Jonathan 2020-01-21 04:29:27 PST
When creating an audio element with an mp3 or aac stream, the network request intermittently keeps loading after unloading it.

I have made a reproducible example here: https://7c5c8.csb.app

Example source code can be viewed here: https://codesandbox.io/s/zealous-blackburn-7c5c8

A movie demonstrating the example in combination with the network tab here: https://www.dropbox.com/s/gzro7iimjxafsbb/audio-unload-bug.mov?dl=0

Click the button to create an audio element with a streaming url as its src. The second click on the button unloads the audio element, but in the network tab you will see that the request keeps running regardless.

I have tested this on both desktop and mobile versions of safari. On desktop I have also checked that it occurs in the Safari Technology Preview.
Comment 1 Radar WebKit Bug Importer 2020-01-22 15:43:57 PST
<rdar://problem/58814164>
Comment 2 Radar WebKit Bug Importer 2020-01-22 15:43:59 PST
<rdar://problem/58814166>