Skip to content

Commit

Permalink
ignore permission checks with no origin
Browse files Browse the repository at this point in the history
Some requests of this type started showing up after an Electron upgrade
  • Loading branch information
PalmerAL committed Feb 5, 2025
1 parent a72ef99 commit a3604e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main/permissionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ function pagePermissionCheckHandler (webContents, permission, requestingOrigin,
return false
}

// TODO sometimes the origin field is blank, figure out why
if (!requestingOrigin) {
return false
}

if (permission === 'clipboard-sanitized-write') {
return true
}
Expand Down

0 comments on commit a3604e8

Please sign in to comment.