Bug 215481 - Make sure OfflineAudioContext::startOfflineRendering() does lazy initialization
Summary: Make sure OfflineAudioContext::startOfflineRendering() does lazy initialization
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Audio (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks: 212611
  Show dependency treegraph
 
Reported: 2020-08-13 16:34 PDT by Chris Dumez
Modified: 2020-08-14 11:40 PDT (History)
11 users (show)

See Also:


Attachments
Patch (10.57 KB, patch)
2020-08-13 16:36 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>