Bug 218400

Summary: BaseAudioContext.decodeAudioData() should throw an InvalidStateError when document is not fully active
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Web AudioAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, darin, eric.carlson, ews-watchlist, ggaren, glenn, jer.noble, philipj, sam, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-decodeaudiodata
Attachments:
Description Flags
Patch none

Description Chris Dumez 2020-10-30 12:31:59 PDT
BaseAudioContext.decodeAudioData() should throw an InvalidStateError when document is not fully active:
- https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-decodeaudiodata

We currently throw a NotAllowedError instead.
Comment 1 Chris Dumez 2020-10-30 12:33:37 PDT
Created attachment 412787 [details]
Patch
Comment 2 EWS 2020-10-30 13:10:01 PDT
Committed r269203: <https://trac.webkit.org/changeset/269203>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 412787 [details].
Comment 3 Radar WebKit Bug Importer 2020-10-30 13:10:21 PDT
<rdar://problem/70893372>