[Webkit-unassigned] [Bug 225449] New: AudioWorkletProcessor which does not extend base class crashes Safari

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 6 04:11:19 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=225449

            Bug ID: 225449
           Summary: AudioWorkletProcessor which does not extend base class
                    crashes Safari
           Product: WebKit
           Version: Safari 14
          Hardware: Mac (Intel)
                OS: macOS 10.14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Audio
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: chrisguttandin at media-codings.com
                CC: cdumez at apple.com

The following snippet will cause the current tab to crash.

const audioContext = new OfflineAudioContext({sampleRate: 44100, length: 1});
const blob = new Blob(
    [`
        registerProcessor('processor', class _ { });
    `],
    { type: 'application/javascript' }
);
const url = URL.createObjectURL(blob);

audioContext.audioWorklet
    .addModule(url)
    .then(() => {
        const myAudioWorkletNode = new AudioWorkletNode(audioContext, 'processor');

        myAudioWorkletNode.connect(audioContext.destination);

        audioContext.startRendering();
    });

I'm not entirely sure what should happen instead. I think an `onprocessorerror` event should be fired instead.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210506/e79277e2/attachment-0001.htm>


More information about the webkit-unassigned mailing list