AudioContextOptions sinkId should only be allowed in a secure context #2598
Labels
category: enhancement
Substantive changes that do not add new features. https://www.w3.org/policies/process/#class-3
Needs Discussion
The issue needs more discussion before it can be fixed.
Priority: Eventually
"nice to have". https://speced.github.io/spec-maintenance/about/
size: S
Small amount of work expected to resolve.
AudioContext.setSinkId is only allowed in secure contexts.
However, a sink ID may also be passed into the AudioContext contructor, and the constructor may be called from an insecure context.
We don't specify what happens if this occurs in an insecure context. I think it should probably throw a NotAllowedError.
We can specify this right below the "If sinkId is specified, [...]" section of the AudioContext constructor steps.
The text was updated successfully, but these errors were encountered: