Skip to content

Commit fce706f

Browse files
thefrog-ghfoolip
authored andcommitted
Revert "Reland "[FedCM] Adding disconnect to reset test state.""
This reverts commit 11d83f664aba9ed9f977e946c7cd5df8817c955e. Reason for revert: Causing failing tests detailed in crbug.com/41482163 comments #26, #27, #28. Bug: 41482163 Original change's description: > Reland "[FedCM] Adding disconnect to reset test state." > > This is a reland of commit 35632c9ba41725c5fabdb14ea66b00af64f83796 > > Original change's description: > > [FedCM] Adding disconnect to reset test state. > > > > Test results are affected because of previously run tests. > > Disconnect helps in resetting the test state for each test case. > > > > Bug: 41482163 > > Change-Id: Ib97c2ff69ba0d01f886947c0969190c778bb7986 > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6780242 > > Commit-Queue: Christian Biesinger <[email protected]> > > Commit-Queue: Jaimukund Bhan <[email protected]> > > Reviewed-by: Nicolás Peña <[email protected]> > > Reviewed-by: Christian Biesinger <[email protected]> > > Cr-Commit-Position: refs/heads/main@{#1491540} > > Bug: 41482163 > Change-Id: Ib7702a52ea5215993e74ea696d7bbf19a505a98b > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6784548 > Commit-Queue: Jaimukund Bhan <[email protected]> > Reviewed-by: Christian Biesinger <[email protected]> > Reviewed-by: Nicolás Peña <[email protected]> > Cr-Commit-Position: refs/heads/main@{#1491717} Bug: 41482163 No-Presubmit: true No-Tree-Checks: true No-Try: true Change-Id: I6dfb9aa2f05c1ad00f3b12515243c51d6f37632a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6788532 Bot-Commit: Rubber Stamper <[email protected]> Commit-Queue: Rubber Stamper <[email protected]> Owners-Override: thefrog <[email protected]> Auto-Submit: thefrog <[email protected]> Cr-Commit-Position: refs/heads/main@{#1492021}
1 parent a2c70e3 commit fce706f

File tree

5 files changed

+8
-18
lines changed

5 files changed

+8
-18
lines changed

fedcm/fedcm-authz/fedcm-disclosure-text-shown.https.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<!DOCTYPE html>
22
<title>Federated Credential Management API network request tests.</title>
3-
<meta name="timeout" content="long">
43
<link rel="help" href="https://fedidcg.github.io/FedCM">
54
<script src="/resources/testharness.js"></script>
65
<script src="/resources/testharnessreport.js"></script>

fedcm/fedcm-context.https.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<!DOCTYPE html>
22
<title>Federated Credential Management API context tests.</title>
3-
<meta name="timeout" content="long">
43
<link rel="help" href="https://fedidcg.github.io/FedCM">
54
<script src="/resources/testharness.js"></script>
65
<script src="/resources/testharnessreport.js"></script>

fedcm/fedcm-multi-idp/fedcm-too-many-idps.https.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
nonce: '2'
2323
});
2424
}
25-
return promise_rejects_js(t, TypeError, navigator.credentials.get({
25+
assert_throws_js(TypeError, navigator.credentials.get({
2626
identity: {
2727
providers: providers,
2828
}

fedcm/fedcm-storage-access-api-autogrant.tentative.https.sub.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<!DOCTYPE html>
22
<title>Federated Credential Management API / Storage Access API autogrants tests.</title>
3-
<meta name="timeout" content="long">
43
<link rel="help" href="https://fedidcg.github.io/FedCM">
54
<link rel="help" href="https://privacycg.github.io/storage-access/">
65
<script src="/resources/testharness.js"></script>

fedcm/support/fedcm-helper.sub.js

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -130,27 +130,20 @@ export function fedcm_test(test_func, test_name) {
130130
promise_test(async t => {
131131
assert_implements(window.IdentityCredential, "FedCM is not supported");
132132

133+
try {
134+
await navigator.credentials.preventSilentAccess();
135+
} catch (ex) {
136+
// In Chrome's content_shell, the promise will be rejected
137+
// even though the part we care about succeeds.
138+
}
139+
133140
// Turn off delays that are not useful in tests.
134141
try {
135142
await test_driver.set_fedcm_delay_enabled(false);
136143
} catch (e) {
137144
// Failure is not critical; it just might slow down tests.
138145
}
139146

140-
t.add_cleanup(async () => {
141-
try {
142-
await IdentityCredential.disconnect(alt_disconnect_options(""));
143-
} catch (ex){
144-
// Failure is not critical, test state is reset.
145-
}
146-
147-
try {
148-
await IdentityCredential.disconnect(disconnect_options(""));
149-
} catch (ex){
150-
// Failure is not critical, test state is reset.
151-
}
152-
});
153-
154147
await set_fedcm_cookie();
155148
await set_alt_fedcm_cookie();
156149
await test_func(t);

0 commit comments

Comments
 (0)