Closed
Bug 1407829
Opened 8 years ago
Closed 8 years ago
Web Authentication - Implement CredMan's Store method
Categories
(Core :: DOM: Device Interfaces, enhancement, P2)
Core
DOM: Device Interfaces
Tracking
()
RESOLVED
FIXED
mozilla58
| Tracking | Status | |
|---|---|---|
| firefox58 | --- | fixed |
People
(Reporter: jcj, Assigned: jcj)
References
()
Details
(Whiteboard: [webauthn][webauthn-wd07])
Attachments
(1 file)
Credential Management defines a Store operation, which isn't quite in WebAuthn's WD-07 yet but will be shortly.
We need to implement that -- it just returns an error immediately.
| Comment hidden (mozreview-request) |
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → jjones
Status: NEW → ASSIGNED
Comment 2•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8918062 [details]
Bug 1407829 - WebAuthn: Implement CredMan's Store method
https://reviewboard.mozilla.org/r/188958/#review194416
::: dom/webauthn/WebAuthnManager.cpp:694
(Diff revision 1)
>
> +already_AddRefed<Promise>
> +WebAuthnManager::Store(nsPIDOMWindowInner* aParent,
> + const Credential& aCredential)
> +{
> + MOZ_ASSERT(aParent);
nit: `MOZ_ASSERT(NS_IsMainThread())`
::: dom/webauthn/WebAuthnManager.cpp:702
(Diff revision 1)
> +
> + nsCOMPtr<nsIGlobalObject> global = do_QueryInterface(aParent);
> +
> + ErrorResult rv;
> + RefPtr<Promise> promise = Promise::Create(global, rv);
> + if(rv.Failed()) {
nit: add a space after if
::: dom/webauthn/tests/test_webauthn_store_credential.html:37
(Diff revision 1)
> + isnot(navigator.credentials, undefined, "Credential Management API endpoint must exist");
> + isnot(navigator.credentials.create, undefined, "CredentialManagement create API endpoint must exist");
> + isnot(navigator.credentials.get, undefined, "CredentialManagement get API endpoint must exist");
> + isnot(navigator.credentials.store, undefined, "CredentialManagement store API endpoint must exist");
> +
> + let gCredentialChallenge = new Uint8Array(16);
nit: The variable name makes it look like that's a global.
Attachment #8918062 -
Flags: review?(ttaubert) → review+
| Assignee | ||
Comment 3•8 years ago
|
||
| mozreview-review-reply | ||
Comment on attachment 8918062 [details]
Bug 1407829 - WebAuthn: Implement CredMan's Store method
https://reviewboard.mozilla.org/r/188958/#review194416
Thanks, Tim. Updated.
| Comment hidden (mozreview-request) |
Comment 5•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8918062 [details]
Bug 1407829 - WebAuthn: Implement CredMan's Store method
https://reviewboard.mozilla.org/r/188958/#review195140
::: dom/webauthn/WebAuthnManager.h:94
(Diff revision 2)
> GetAssertion(nsPIDOMWindowInner* aParent,
> const PublicKeyCredentialRequestOptions& aOptions);
>
> + already_AddRefed<Promise>
> + Store(nsPIDOMWindowInner* aParent,
> + const Credential& aCredential);
nit: identation
Attachment #8918062 -
Flags: review?(kyle) → review+
| Assignee | ||
Comment 6•8 years ago
|
||
| mozreview-review-reply | ||
Comment on attachment 8918062 [details]
Bug 1407829 - WebAuthn: Implement CredMan's Store method
https://reviewboard.mozilla.org/r/188958/#review195140
Thanks for the reviews!
| Comment hidden (mozreview-request) |
| Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Updated•8 years ago
|
Target Milestone: Future → mozilla58
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/8ebe3f571ab8
WebAuthn: Implement CredMan's Store method r=qdot,ttaubert
Keywords: checkin-needed
Comment 9•8 years ago
|
||
| bugherder | ||
Comment 10•8 years ago
|
||
Pushed by ttaubert@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/d99dbb659ecc
Fix merge bustage in WebAuthnManager.h on a CLOSED TREE r=me
Comment 11•8 years ago
|
||
| bugherder | ||
You need to log in
before you can comment on or make changes to this bug.
Description
•