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>
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   
Bug Depends on:    
Bug Blocks: 212611    
Attachments:
Description Flags
Patch none

Chris Dumez
Reported 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
Attachments
Patch (8.84 KB, patch)
2020-10-27 09:06 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2020-10-27 09:06:26 PDT
Chris Dumez
Comment 2 2020-10-27 10:09:40 PDT
Comment on attachment 412426 [details] Patch Clearing flags on attachment: 412426 Committed r269047: <https://trac.webkit.org/changeset/269047>
Chris Dumez
Comment 3 2020-10-27 10:09:42 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 4 2020-10-27 10:10:18 PDT
Note You need to log in before you can comment on or make changes to this bug.