[w3c/webauthn] b75aef: Fix #1268 Type transport strings as DOMStrings. (#...

  Branch: refs/heads/master
  Home:   https://github.com/w3c/webauthn

  Commit: b75aef303aef18aeb0700740dfa4e4c0fa75eda7
      https://github.com/w3c/webauthn/commit/b75aef303aef18aeb0700740dfa4e4c0fa75eda7

  Author: Adam Langley <agl@imperialviolet.org>
  Date:   2019-08-28 (Wed, 28 Aug 2019)

  Changed paths:
    M index.bs

  Log Message:
  -----------
  Fix #1268 Type transport strings as DOMStrings. (#1275)

* Type transport strings as DOMStrings.

Currently transports are represented as an enum. However, WebIDL has
strict enums. (I.e. an RP which sent an unrecognised transport would
make the whole structure unparsable.) This means that every time we add
a transport, we break all existing browsers.

In order to address this, this change retypes transports as plain
DOMStrings. The AuthenticatorTransport enum still exists, but now only
as documentation and registry — not as a factor in type-checking.

* Address Emil's comment

Fixes #1268.

* Address Jeff's comments.

Received on Wednesday, 28 August 2019 19:10:39 UTC