Bug 218235

Summary: AudioContext.suspend() should not reject promise when audio session is interrupted
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, ews-watchlist, glenn, jer.noble, philipj, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 217606    
Attachments:
Description Flags
Patch none

Description Chris Dumez 2020-10-27 08:21:08 PDT
AudioContext.suspend() should not reject promise when audio session is interrupted. Being "interrupted" is an internal WebKit concept and rejecting the promise here is confusing to Web developers.
Comment 1 Chris Dumez 2020-10-27 08:24:54 PDT
Created attachment 412423 [details]
Patch
Comment 2 Chris Dumez 2020-10-27 08:26:09 PDT
Comment on attachment 412423 [details]
Patch

Clearing flags on attachment: 412423

Committed r269039: <https://trac.webkit.org/changeset/269039>
Comment 3 Chris Dumez 2020-10-27 08:26:11 PDT
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2020-10-27 08:27:18 PDT
<rdar://problem/70722668>