[webrtc-pc] binaryType setter requirements are wrong (#2897)

annevk has just created a new issue for https://github.com/w3c/webrtc-pc:

== binaryType setter requirements are wrong ==
> On setting, if the new value is either the string "blob" or the string "arraybuffer", then set the IDL attribute to this new value. Otherwise, [throw](https://webidl.spec.whatwg.org/#dfn-throw) a [SyntaxError](https://webidl.spec.whatwg.org/#syntaxerror).

Due to `BinaryType` Web IDL will only ever hand you "`blob`" or "`arraybuffer`". All other values result in the binding layer returning early (not throwing).

I will correct that on WPT.

Also, it appears that neither Chromium nor Gecko implements this getter/setter, but WebKit does, and WebKit has "`arraybuffer`" as the default value.

I will add coverage for "`blob`" on WPT for now, but if this is going to be changed that would be good to know.

cc @youennf @jan-ivar 

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2897 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 28 August 2023 13:32:15 UTC