All guides
IPermissions
Query a permission's state (
granted/denied/prompt) before prompting.
- Wraps: Permissions API
- MDN: Permissions API
- Home:
Rask.Core.Browser(all hosts) - Shape: one-shot
- Availability: Web/Server ✅ · PWA/WASM ✅
Support is patchy across engines
navigator.permissions.query answers for different names in different engines. WebKit (Safari) answers
only for camera and microphone; geolocation and notifications throw NotSupportedError, and the
clipboard/persistent-storage names throw TypeError. An unrecognised name faults the awaited task with a
JSException, so gate accordingly — or catch and treat a fault as "unknown".