ScriptProcessNode should only run script asynchronously if the audio context is not an OfflineAudioContext. If the context is an OfflineAudioContext, then it should pause processing until the script has finished execution. This aligns our behavior with Blink and helps us pass more WPT tests.
Created attachment 406808 [details] Patch
Comment on attachment 406808 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=406808&action=review > Source/WebCore/Modules/webaudio/ScriptProcessorNode.cpp:214 > + // De-reference to match the ref() call in process(). Nit: it is a little odd to have this comment only on the second `deref()`
Created attachment 406816 [details] Patch
Committed r265836: <https://trac.webkit.org/changeset/265836> All reviewed patches have been landed. Closing bug and clearing flags on attachment 406816 [details].
<rdar://problem/67358588>