Bug 218400 - BaseAudioContext.decodeAudioData() should throw an InvalidStateError when document is not fully active
Summary: BaseAudioContext.decodeAudioData() should throw an InvalidStateError when doc...
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: https://webaudio.github.io/web-audio-...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-10-30 12:31 PDT by Chris Dumez
Modified: 2020-10-30 13:10 PDT (History)
11 users (show)

See Also:


Attachments
Patch (5.88 KB, patch)
2020-10-30 12:33 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-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>