Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for Capability Delegation #2103

Open
dontcallmedom opened this issue Jan 29, 2025 · 0 comments · May be fixed by #2107
Open

Add test for Capability Delegation #2103

dontcallmedom opened this issue Jan 29, 2025 · 0 comments · May be fixed by #2107

Comments

@dontcallmedom
Copy link

https://wicg.github.io/capability-delegation/spec.html adds a new delegate parameter to the options argument of postMessage, taking for value a string matching a feature policy.

window.postMessage('', {delegate: 'doesnotexist'}) allows to detect whether delegation is supported at all (it throws in a browser that supports it, it doesn't otherwise)

window.postMessage('', {delegate: 'payment'}) allows to detect whether delegation for payment specifically is supported at all (it doesn't throw in a browser that supports it)

@queengooborg queengooborg linked a pull request Jan 30, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant