Skip to content

Commit

Permalink
Remove 'type' from document.hasPrivateToken
Browse files Browse the repository at this point in the history
The document.hasPrivateToken method currently has a 'type' param that is
required to be 'private-state-token'. Since there are currently no other
supported types, we can remove this param and default to the PST
functionality.

Bug: 1432269
Change-Id: I896e191092ee7cb805f4e72b91ed572f7751b4d8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4415978
Commit-Queue: Ryan Kalla <[email protected]>
Reviewed-by: Avi Drissman <[email protected]>
Reviewed-by: Joey Arhar <[email protected]>
Reviewed-by: Steven Valdez <[email protected]>
Code-Coverage: Findit <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1132663}
  • Loading branch information
ryankalla authored and chromium-wpt-export-bot committed Apr 19, 2023
1 parent b8715c0 commit 1ef1f88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
frame.remove();

test(() => {
assert_equals(cachedDocument.hasPrivateToken("https://issuer.example", 'private-state-token'), undefined,
assert_equals(cachedDocument.hasPrivateToken("https://issuer.example"), undefined,
"Can't construct a Promise in a destroyed execution context.");
}, 'hasPrivateToken in a destroyed document.');
</script>
Expand Down

0 comments on commit 1ef1f88

Please sign in to comment.