Bug 218236

Summary: Calling AudioContext.suspend() / resume() while already suspended / running should resolve the promise right away
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Web AudioAssignee: Chris Dumez <cdumez>
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   
Bug Depends on:    
Bug Blocks: 212611    
Description Flags
Patch none

Description Chris Dumez 2020-10-27 08:37:04 PDT
Calling AudioContext.suspend() while already suspended should resolve the promise right away. This is the behavior in the specification [1] and Blink/Gecko's behavior.

[1] https://www.w3.org/TR/webaudio/#dom-audiocontext-suspend
Comment 1 Chris Dumez 2020-10-27 09:06:26 PDT
Created attachment 412426 [details]
Comment 2 Chris Dumez 2020-10-27 10:09:40 PDT
Comment on attachment 412426 [details]

Clearing flags on attachment: 412426

Committed r269047: <https://trac.webkit.org/changeset/269047>
Comment 3 Chris Dumez 2020-10-27 10:09:42 PDT
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2020-10-27 10:10:18 PDT