Bug 214931

Summary: Calling AudioNode constructors should have identical behavior to using create*() function on BaseAudioContext
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Web AudioAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: clark_wang, eric.carlson, ews-watchlist, ggaren, glenn, jer.noble, philipj, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 212611, 214851    
Attachments:
Description Flags
Patch eric.carlson: review+

Chris Dumez
Reported 2020-07-29 12:38:27 PDT
Calling AudioNode constructors should have identical behavior than using create*() function on BaseAudioContext. Otherwise, this leads to assertion hits like: https://ews-build.s3-us-west-2.amazonaws.com/macOS-Mojave-Debug-WK1-Tests-EWS/r405354-14671/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-scriptprocessornode-interface/simple-input-output-crash-log.txt We need to make sure that the AudioContext gets initialized when an AudioNode constructor gets called. We also need to make sure refNode() gets called if necessary.
Attachments
Patch (8.49 KB, patch)
2020-07-29 12:41 PDT, Chris Dumez
eric.carlson: review+
Chris Dumez
Comment 1 2020-07-29 12:41:47 PDT
Eric Carlson
Comment 2 2020-07-29 13:07:37 PDT
Comment on attachment 405486 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=405486&action=review > Source/WebCore/ChangeLog:3 > + Calling AudioNode constructors should have identical behavior than using create*() function on BaseAudioContext s/identical behavior than using create/identical behavior to using create/ > Source/WebCore/ChangeLog:8 > + Calling AudioNode constructors should have identical behavior than using create*() function on BaseAudioContext. Ditto.
Chris Dumez
Comment 3 2020-07-29 13:24:51 PDT
Radar WebKit Bug Importer
Comment 4 2020-07-29 13:25:24 PDT
Note You need to log in before you can comment on or make changes to this bug.