But an even better way to fix it is just to turn decriptor as an object, which would allow Let rootDesc be parametersDict.descriptor.
(Step 4 does the same thing for rootDesc.name when rootDesc is a JS object, maybe it can be "permission descriptor type per the result of Get(rootDesc, "name")"
The Set Permission step 3 does: https://w3c.github.io/permissions/#webdriver-command-set-permission
But
parameters
is a JS object here, so it can't just access the IDL property but should do some JSGet()
, as Streams does in https://streams.spec.whatwg.org/#abstract-opdef-setupcrossrealmtransformreadable.But an even better way to fix it is just to turn
decriptor
as an object, which would allowLet rootDesc be parametersDict.descriptor
.(Step 4 does the same thing for
rootDesc.name
whenrootDesc
is a JS object, maybe it can be "permission descriptor type per the result ofGet(rootDesc, "name")
"