Skip to content

Commit b56a33b

Browse files
authored
Update test for the document becomes non-fully active during DC API (#54323)
This PR does the following: 1- Remove one check that was webkit specific to make the test more universal. 2- Switch the error to be "AbortError" when the iframe is destroyed while there is a request in flight.
1 parent d3a4f72 commit b56a33b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

digital-credentials/non-fully-active.https.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,12 @@
7676
await iframe.focus();
7777
const p = promise_rejects_dom(
7878
t,
79-
"InvalidStateError",
79+
"AbortError",
8080
DOMExceptionCtor,
8181
iframe.contentWindow.navigator.credentials.get(request),
8282
"Expect promise to reject if the document becomes non-fully active"
8383
);
8484
iframe.remove();
85-
assert_equals(stolenNavigator.credentials, null, "CredentialsContainer should be null after iframe is removed");
8685
await p;
8786
}, "Promise rejects with DOMException when the document becomes non-fully active");
8887
</script>

0 commit comments

Comments
 (0)