Summary: | Safari Crashes if audio.src is changed while connected to AudioAnalyserNode | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Gregg Tavares <gman> | ||||||||
Component: | Web Audio | Assignee: | Jer Noble <jer.noble> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | ap, commit-queue, eric.carlson, jer.noble | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | Safari 9 | ||||||||||
Hardware: | Mac | ||||||||||
OS: | All | ||||||||||
Attachments: |
|
Description
Gregg Tavares
2016-01-28 08:48:13 PST
I cannot reproduce this with Safari 9.0.3 (shipping WebKit). I only get an exception in console: InvalidStateError: DOM Exception 11: An attempt was made to use an object that is not, or is no longer, usable. createMediaElementSource safari-issue.html:92 handleCanplay safari-issue.html:92 Try this 1. Make sure the WebInspector is NOT open (nor any other JavaScript tools) 2. Go to http://greggman.com/downloads/examples/safari-audio-issue/safari-issue.html Do **NOT** click the button 3. Go to http://google.com 4. Go to http://greggman.com/downloads/examples/safari-audio-issue/safari-issue.html What happens for me at step 4 is safari doesn't play the music like it did in step 2 I might have to repeat steps 3 and 4. This is in Safari 9.0.3 Created attachment 270385 [details]
crash report
Here's a video of it crashing. Previously attached crash report https://youtu.be/qcERq9gphqk Safari 9.0.3 If you can't repo try hitting refresh quickly in succession while the music is playing Here's a video of the visit, visit something else, visit again issue https://youtu.be/VJ-pCi5oCwg the URL used in the video above is http://twgljs.org/examples/dynamic-buffers.html but http://greggman.com/downloads/examples/safari-audio-issue/safari-issue.html seems to work for that issue just ask well I could reproduce after a few reloads. Thank you! rdar://problem/23648082 *** Bug 155833 has been marked as a duplicate of this bug. *** Created attachment 274821 [details]
Patch
Created attachment 274822 [details]
Patch
Comment on attachment 274822 [details] Patch Clearing flags on attachment: 274822 Committed r198654: <http://trac.webkit.org/changeset/198654> All reviewed patches have been landed. Closing bug. |