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

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

View File

@@ -617,6 +617,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