Bug 215481

Summary: Make sure OfflineAudioContext::startOfflineRendering() does lazy initialization
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Web AudioAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: clark_wang, darin, eric.carlson, ews-watchlist, ggaren, glenn, jer.noble, philipj, sergio, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=215417
Bug Depends on:    
Bug Blocks: 212611    
Attachments:
Description Flags
Patch none

Description Chris Dumez 2020-08-13 16:34:28 PDT
Make sure OfflineAudioContext::startOfflineRendering() does lazy initialization before actually starting rendering. If lazy initialization has not happened yet (because no audio nodes were created for this context yet), then rendering would fail with an InvalidStateError, due to lack on initialization.
Comment 1 Chris Dumez 2020-08-13 16:36:07 PDT
Created attachment 406556 [details]
Patch
Comment 2 EWS 2020-08-14 11:39:19 PDT
Committed r265684: <https://trac.webkit.org/changeset/265684>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 406556 [details].
Comment 3 Radar WebKit Bug Importer 2020-08-14 11:40:20 PDT
<rdar://problem/67086154>