Bug 214487

Summary: Fixes to match BaseAudioContext.idl to spec
Product: WebKit Reporter: Clark Wang <clark_wang>
Component: Web AudioAssignee: Clark Wang <clark_wang>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, eric.carlson, esprehn+autocc, ews-watchlist, glenn, jer.noble, kondapallykalyan, philipj, 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
Patch
none
Patch
none
Patch none

Description Clark Wang 2020-07-17 11:23:06 PDT
Added in small fixes to bring BaseAudioContext.idl closer to spec. Edited a test file for PannerNode constructor to match spec and Chrome / Firefox.
Comment 1 Clark Wang 2020-07-17 14:18:08 PDT
Created attachment 404592 [details]
Patch
Comment 2 Clark Wang 2020-07-17 14:27:07 PDT
Created attachment 404593 [details]
Patch
Comment 3 Chris Dumez 2020-07-17 14:54:43 PDT
Comment on attachment 404593 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=404593&action=review

> Source/WebCore/Modules/webaudio/BaseAudioContext.cpp:-526
> -    return PannerNode::create(*this, sampleRate());

So who is using this old factory / constructor now? If no one is, then why aren't you removing it in this patch? We don't want to keep dead code around, especially dead code that is not spec-compliant.
Comment 4 Clark Wang 2020-07-17 16:44:12 PDT
(In reply to Chris Dumez from comment #3)
> Comment on attachment 404593 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=404593&action=review
> 
> > Source/WebCore/Modules/webaudio/BaseAudioContext.cpp:-526
> > -    return PannerNode::create(*this, sampleRate());
> 
> So who is using this old factory / constructor now? If no one is, then why
> aren't you removing it in this patch? We don't want to keep dead code
> around, especially dead code that is not spec-compliant.

I think WebKitAudioPannerNode is still using PannerNodeBase, but otherwise I can remove old PannerNode constructor.
Comment 5 Clark Wang 2020-07-20 09:26:35 PDT
Created attachment 404720 [details]
Patch
Comment 6 Clark Wang 2020-07-20 12:11:45 PDT
Created attachment 404740 [details]
Patch
Comment 7 EWS 2020-07-20 14:52:55 PDT
Committed r264620: <https://trac.webkit.org/changeset/264620>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 404740 [details].
Comment 8 Radar WebKit Bug Importer 2020-07-20 14:53:16 PDT
<rdar://problem/65849546>