Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle the AbortSignal in get() and create() themselves. #110

Merged
merged 10 commits into from
Nov 2, 2017

Conversation

jyasskin
Copy link
Member

@jyasskin jyasskin commented Nov 1, 2017

This builds on #104 (Thanks @AngeloKai!) and now follows the instructions in https://dom.spec.whatwg.org/#abortcontroller-api-integration to bail out early if the caller has already aborted before the operation starts.

8c46783 shows two approaches to explaining how the internal methods use the AbortSignal. Let me know which you prefer.


Preview | Diff

Copy link
Member

@mikewest mikewest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, with one nit about pulling WebAuthn in as a normative reference. If that requires changes to Bikeshed, then I'd be happy to just land this and deal with it later (though probably with a comment in the text that we should come back to this).

@@ -1903,6 +1921,11 @@ <h4 algorithm id="construct-federatedcredential-data">
{{Credential/[[DiscoverFromExternalSource]](options)}} is appropriate for
[=credentials=] that need to be re-generated from a [=credential source=].

Long-running operations, like those in {{PublicKeyCredential}}'s
{{PublicKeyCredential/[[Create]](options)}} and {{PublicKeyCredential/[[DiscoverFromExternalSource]](options)}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: This causes Bikeshed to pull WebAuthn in as a normative reference, which I don't think we actually want. That said, I'm not sure how to tell Bikeshed that it's an informative reference. :) @tabatkins might have some ideas? :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops. https://tabatkins.github.io/bikeshed/#auto-biblio says how to avoid it. Done.

@mikewest
Copy link
Member

mikewest commented Nov 2, 2017

LGTM, thanks! I'll merge it once Travis is done poking at it.

@mikewest mikewest merged commit 033e2f8 into w3c:master Nov 2, 2017
@jyasskin jyasskin deleted the integrate-abort branch November 2, 2017 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants