Skip to content

Commit a12602d

Browse files
authored
docs: document missing permission types (electron#24660)
1 parent 77eea08 commit a12602d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/api/session.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,10 @@ win.webContents.session.setCertificateVerifyProc((request, callback) => {
350350
* `webContents` [WebContents](web-contents.md) - WebContents requesting the permission. Please note that if the request comes from a subframe you should use `requestingUrl` to check the request origin.
351351
* `permission` String - The type of requested permission.
352352
* `media` - Request access to media devices such as camera, microphone and speakers.
353+
* `mediaKeySystem` - Request access to DRM protected content.
353354
* `geolocation` - Request access to user's current location.
354355
* `notifications` - Request notification creation and the ability to display them in the user's system tray.
356+
* `midi` - Request MIDI access in the `webmidi` API.
355357
* `midiSysex` - Request the use of system exclusive messages in the `webmidi` API.
356358
* `pointerLock` - Request to directly interpret mouse movements as an input method. Click [here](https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API) to know more.
357359
* `fullscreen` - Request for the app to enter fullscreen mode.

0 commit comments

Comments
 (0)