mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
feat: correctly identify permissions when using setPermissionRequestHandler (#26172)
* fix: correctly identify clipboard read permission * Update tests for variable clipboard content * chore: add all possible permission conversions * VIDEO_CAPTURE and AUDIO_CAPTURE were already defined * Handle all PermissionTypes * use skewer case for accessibility events to match permissions api https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API
This commit is contained in:
committed by
GitHub
parent
07ee75b745
commit
7f9b21daa0
@@ -487,6 +487,7 @@ win.webContents.session.setCertificateVerifyProc((request, callback) => {
|
||||
* `handler` Function | null
|
||||
* `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.
|
||||
* `permission` String - The type of requested permission.
|
||||
* `clipboard-read` - Request access to read from the clipboard.
|
||||
* `media` - Request access to media devices such as camera, microphone and speakers.
|
||||
* `mediaKeySystem` - Request access to DRM protected content.
|
||||
* `geolocation` - Request access to user's current location.
|
||||
|
||||
Reference in New Issue
Block a user