Bug 218236 - Calling AudioContext.suspend() / resume() while already suspended / running should resolve the promise right away
Summary: Calling AudioContext.suspend() / resume() while already suspended / running s...
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-10-27 08:37 PDT by Chris Dumez
Modified: 2020-10-27 10:10 PDT (History)
11 users (show)

See Also:


Attachments
Patch (8.84 KB, patch)
2020-10-27 09:06 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-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]
Patch
Comment 2 Chris Dumez 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>
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
<rdar://problem/70727154>