Skip to content

Commit 55756e1

Browse files
pkotwiczchromium-wpt-export-bot
authored andcommitted
Fix explanation for edge case in FederatedAuthRequestImpl
This CL updates the explanation for the edge case in FederatedAuthRequestImpl::CancelTokenRequest() and adds test which executes the edge case. BUG=40940748 Change-Id: I800959c721f13364801110eb20b1e1dff0b45059 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5871992 Commit-Queue: Peter Kotwicz <[email protected]> Reviewed-by: Christian Biesinger <[email protected]> Cr-Commit-Position: refs/heads/main@{#1357306}
1 parent 61f0971 commit 55756e1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<title>Federated Credential Management API network request tests.</title>
3+
<link rel="help" href="https://fedidcg.github.io/FedCM">
4+
<script src="/resources/testharness.js"></script>
5+
<script src="/resources/testharnessreport.js"></script>
6+
<script src="/resources/testdriver.js"></script>
7+
<script src="/resources/testdriver-vendor.js"></script>
8+
9+
<script type="module">
10+
import {fedcm_test,
11+
fedcm_get_and_select_first_account,
12+
request_options_with_mediation_required} from './support/fedcm-helper.sub.js';
13+
14+
fedcm_test(async t => {
15+
let controller = new AbortController();
16+
let test_options = request_options_with_mediation_required();
17+
test_options.signal = controller.signal;
18+
test_options.mediation = "silent";
19+
const cred = fedcm_get_and_select_first_account(t, test_options);
20+
controller.abort();
21+
return promise_rejects_dom(t, 'NetworkError', cred);
22+
}, "Test the abort signal when request fails due to silent mediation being disallowed");
23+
</script>

0 commit comments

Comments
 (0)