Skip to content

Commit a3604e8

Browse files
committed
ignore permission checks with no origin
Some requests of this type started showing up after an Electron upgrade
1 parent a72ef99 commit a3604e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main/permissionManager.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ function pagePermissionCheckHandler (webContents, permission, requestingOrigin,
182182
return false
183183
}
184184

185+
// TODO sometimes the origin field is blank, figure out why
186+
if (!requestingOrigin) {
187+
return false
188+
}
189+
185190
if (permission === 'clipboard-sanitized-write') {
186191
return true
187192
}

0 commit comments

Comments
 (0)