fix: also pass securityOrigin to media permissions request handler (#31437)

Co-authored-by: Maxime Serrano <mserrano@alumni.cmu.edu>
This commit is contained in:
trop[bot]
2021-10-15 13:33:03 +09:00
committed by GitHub
parent d552fa0c07
commit cef7a28136
3 changed files with 29 additions and 0 deletions

View File

@@ -506,6 +506,7 @@ win.webContents.session.setCertificateVerifyProc((request, callback) => {
* `permissionGranted` Boolean - Allow or deny the permission.
* `details` Object - Some properties are only available on certain permission types.
* `externalURL` String (optional) - The url of the `openExternal` request.
* `securityOrigin` String (optional) - The security origin of the `media` request.
* `mediaTypes` String[] (optional) - The types of media access being requested, elements can be `video`
or `audio`
* `requestingUrl` String - The last URL the requesting frame loaded