WICG / local-font-access

Web API for enumerating fonts on the local system
https://wicg.github.io/local-font-access
Apache License 2.0
76 stars 16 forks source link

Use `NotAllowedError` instead of `SecurityError` when appropriate #100

Open noamr opened 8 months ago

noamr commented 8 months ago

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).