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

Use NotAllowedError instead of SecurityError when appropriate #100

Open
noamr opened this issue Mar 13, 2024 · 0 comments
Open

Use NotAllowedError instead of SecurityError when appropriate #100

noamr opened this issue Mar 13, 2024 · 0 comments

Comments

@noamr
Copy link

noamr commented Mar 13, 2024

See https://wicg.github.io/local-font-access/#dom-window-querylocalfonts
(3) is a SecurityError because it's an origin violation, but (4) and (5) should probably be NotAllowedError because those are about transient activation and permission policy (see existing use of these errors).

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

No branches or pull requests

1 participant