setPermissionRequestHandler

Sets the handler which can be used to respond to permission requests for the session. Permissions: Enum of 'media', 'geolocation', 'notifications', 'midiSysex', 'pointerLock', 'fullscreen', 'openExternal'.

Learn more »

Media

Permissions to use a media input. Requested by methods like navigator.mediaDevices.getUserMedia, navigator.webkitGetUserMedia

Geolocation

Permissions to obtain the position of the device. For more info see Using HTML Geolocation Note: the permission are requested only once.

Notifications

Permissions to configure and display desktop notifications to the user. For more info see notification.requestPermission(). Note: the permission are requested only once.

MidiSysex

Permissions for access to MIDI devices on the user's system with sysex option true. For more info see navigator.requestMIDIAccess().

PointerLock

Permissions for the pointer to be locked to the target element. For more info see requestPointerLock. This will not work from inside the a webview

Fullscreen

Permissions to make the element be displayed full-screen Element.requestFullscreen().

OpenExternal

Emits when accessing an external protocol. For example when setting the src to something like 'magnet:test'