Closed marcoscaceres closed 2 months ago
In the spec, for "Request a Credential", we currently assume that a match is made for an interface type:
For each interface in options’ relevant credential interface objects: If settings’ active credential types contains interface’s [[type]], return a promise rejected with a "NotAllowedError" DOMException.
For each interface in options’ relevant credential interface objects:
If settings’ active credential types contains interface’s [[type]], return a promise rejected with a "NotAllowedError" DOMException.
I think we should throw a NotSupportedError first if "relevant credential interface objects" returns an empty list.
(and eventually change that to "relevant credential interface object", with no "s" ;) )
Noting this would match Firefox and Safari's behavior.
Chrome resolves with null.
In the spec, for "Request a Credential", we currently assume that a match is made for an interface type:
I think we should throw a NotSupportedError first if "relevant credential interface objects" returns an empty list.
(and eventually change that to "relevant credential interface object", with no "s" ;) )