Skip to content

Commit 98c67fd

Browse files
Fix crash with invalid parameter combination and add coverage to WPT
Differential Revision: https://phabricator.services.mozilla.com/D220258 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1914853 gecko-commit: 40d0f1c943cbcf1174d99627d4b20d50c3bdc9b1 gecko-reviewers: anti-tracking-reviewers, timhuang
1 parent 64dca58 commit 98c67fd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

fedcm/lfedcm-identity.create-store-collect.tentative.sub.https.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@
6767
}, "Basic identity credential store suceeds");
6868

6969

70+
promise_test(async t => {
71+
72+
let promise4 = navigator.credentials.get({identity: {providers: []}});
73+
assert_true(promise4 instanceof Promise, "The return value of get must be a promise.");
74+
let result4 = await promise4;
75+
assert_equals(result4, null, "A credential is not returned from the CredentialContainer when a request with no providers is given");
76+
77+
}, "Collecting from no providers yields a promise with null resolution");
78+
79+
7080
promise_test(async t => {
7181
let initData = {
7282
id : "wpt-pick-me",

0 commit comments

Comments
 (0)