- From: Kagami Sascha Rosylight <notifications@github.com>
- Date: Thu, 08 Feb 2024 06:51:38 -0800
- To: w3c/permissions <permissions@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 8 February 2024 14:51:45 UTC
https://w3c.github.io/permissions/#webdriver-command-set-permission > 1. Let parameters be the parameters argument, [converted to an IDL value](https://webidl.spec.whatwg.org/#dfn-convert-ecmascript-to-idl-value) of type [PermissionSetParameters](https://w3c.github.io/permissions/#dom-permissionsetparameters). If this throws an exception, return an [invalid argument](https://www.w3.org/TR/webdriver1/#dfn-invalid-argument) [error](https://www.w3.org/TR/webdriver1/#dfn-error). > 2. Let rootDesc be parameters.[descriptor](https://w3c.github.io/permissions/#dom-permissionsetparameters-descriptor). But it's not clear what the "parameters" in the second step refers to. It should be the argument, or otherwise `rootDesc` won't have extra members from e.g. MidiPermissionDescriptor. That should be made clear. The Streams spec uses `Dict` to disambiguate in a similar case: https://streams.spec.whatwg.org/#rs-constructor >1. Let underlyingSourceDict be underlyingSource, [converted to an IDL value](https://webidl.spec.whatwg.org/#dfn-convert-ecmascript-to-idl-value) of type [UnderlyingSource](https://streams.spec.whatwg.org/#dictdef-underlyingsource). We should probably follow that here. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/permissions/issues/440 You are receiving this because you are subscribed to this thread. Message ID: <w3c/permissions/issues/440@github.com>
Received on Thursday, 8 February 2024 14:51:45 UTC