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

Callback IDL types #482

Open
lukewarlow opened this issue Mar 15, 2024 · 1 comment
Open

Callback IDL types #482

lukewarlow opened this issue Mar 15, 2024 · 1 comment
Labels

Comments

@lukewarlow
Copy link
Member

Random thought I had while cleaning up some work in WebKit, does it actually make sense for the callbacks to have their own IDL type per callback? Each callback type is identical but currently they're 3 different type defs. Is there any benefit to this? Should we just do CreateTrustedTypeCallback?

https://w3c.github.io/trusted-types/dist/spec/#trusted-type-policy-options

@annevk
Copy link
Member

annevk commented Mar 18, 2024

CreateScriptURLCallback has a different return type. But there's no reason for the other two to not be unified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants