Bug 227959

Summary: Fix type of exceptions thrown in the WebAudio API
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Web AudioAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, cdumez, clopez, darin, eric.carlson, ews-watchlist, ggaren, glenn, jer.noble, philipj, sam, sergio, webkit-bug-importer, youennf, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Chris Dumez
Reported 2021-07-14 10:39:41 PDT
AudioNode constructors should throw a NotSupportedError when the requested number of channels is too large. Currently, WebKit throws an IndexSizeError but this doesn't match Blink / Gecko and causes some WPT tests to fail.
Attachments
Patch (65.27 KB, patch)
2021-07-14 11:37 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2021-07-14 11:37:45 PDT
Yusuke Suzuki
Comment 2 2021-07-14 13:12:59 PDT
Comment on attachment 433513 [details] Patch r=me
EWS
Comment 3 2021-07-14 13:39:50 PDT
Committed r279917 (239666@main): <https://commits.webkit.org/239666@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 433513 [details].
Radar WebKit Bug Importer
Comment 4 2021-07-14 13:40:18 PDT
Note You need to log in before you can comment on or make changes to this bug.