Re: [whatwg/webidl] IDL-level support for permission checks? (Issue #1066)

Callers found from webref (except WICG ones, for now):

Promise rejection

* [`HTMLMediaElement#setSinkId()`](https://w3c.github.io/mediacapture-output/#dom-htmlmediaelement-setsinkid)
* [`Navigator#getBattery()`](https://w3c.github.io/battery/#ref-for-index-term-allowed-to-use-1)
* [`WakeLock#request()`](https://w3c.github.io/screen-wake-lock/#the-request-method)
* [`Navigator#share()`](https://w3c.github.io/web-share/#share-method)
* [`PublicKeyCredential#isUserVerifyingPlatformAuthenticatorAvailable()`](https://w3c.github.io/webauthn/#ref-for-allowed-to-use) 
* [`Element#requestFullscreen()`](https://fullscreen.spec.whatwg.org/#ref-for-allowed-to-use) (TypeError): 
* [`Navigator#requestMediaKeySystemAccess()`](https://w3c.github.io/encrypted-media/#dom-navigator-requestmediakeysystemaccess) (SecurityError): 
* [`Navigator#getGamePads()`](https://w3c.github.io/gamepad/#dom-navigator-getgamepads) (SecurityError): 
* [`HTMLVideoElement#requestPictureInPicture()`](https://w3c.github.io/picture-in-picture/#ref-for-allowed-to-use) (SecurityError): 
* [`Navigator#requestMIDIAccess()`](https://webaudio.github.io/web-midi-api/#dfn-algorithm-to-request-midi-access) (SecurityError)
* [`Document#requestStorageAccess()`](https://privacycg.github.io/storage-access/#ref-for-allowed-to-use) (No error object?): 

Exception
* [Constructors of Generic Sensors](https://w3c.github.io/sensors/#ref-for-allowed-to-use%E2%91%A2) (SecurityError, e.g. in [new AmbientLightSensor()](https://w3c.github.io/ambient-light/#ref-for-check-sensor-policy-controlled-features))
* [`new PaymentRequest()`](https://w3c.github.io/payment-request/#dfn-paymentrequest-paymentrequest) (SecurityError)

boolean
* [`Navigator#canShare()`](https://w3c.github.io/web-share/#canshare-data-method)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1066#issuecomment-984169978

Received on Thursday, 2 December 2021 00:07:13 UTC