[webauthn] Merged Pull Request: Make create() and get() abortable

equalsJeffH has just merged AngeloKai's pull request 544 for https://github.com/w3c/webauthn:

== Make create() and get() abortable  ==
NOTE: this is closely related to: https://github.com/w3c/webappsec-credential-management/pull/110 (and formerly #104), which is now (as of 2-Nov-2017) merged to master.

As @leshi explained to me, Google's current two step verification step involves prompting a wizard such as [this.](https://angelokai.github.io/Screenshot.png). If the user clicks cancel on the wizard, the UA needs to withdraw all the calls to authenticators, which should stop blinking subsequently. I'd call out the PR is not only to fulfill this niche use case but to give us a clean interface overall. 

The PR makes use of the https://dom.spec.whatwg.org/#abortsignal-aborted-flag) object to achieve such functionality. This would be an addition to the API interface. AFAIK, both Edge and Firefox have implemented AbortSignal. Chrome is working on the feature too. 

There is a corresponding PR standing at CredMan land: https://github.com/w3c/webappsec-credential-management/pull/104. The CredMan PR adds the abort functionality to the CredMan surface, though this may not be needed depending on @mikewest and Dominic's preference. 

The AbortSignal feature is new to HTML overall. Fetch is the first one to utilize the feature: https://github.com/whatwg/fetch/issues/447. However, we can't completely follow fetch because there are still nuances here and there.


<!--
    This comment and the below content is programatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
[Preview](https://s3.amazonaws.com/pr-preview/AngeloKai/webauthn/abort.html) | [Diff](https://s3.amazonaws.com/pr-preview/w3c/webauthn/bcb5c11...AngeloKai:78b0912.html)

See https://github.com/w3c/webauthn/pull/544

Received on Wednesday, 8 November 2017 23:41:57 UTC