The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): allow HTML5 video fullscreen through permission handlers
Youssef360c1ee83695
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.tsindex deb5ed49fd4..1da6d948a2d 100644--- a/apps/desktop/electron/main.ts+++ b/apps/desktop/electron/main.ts@@ -7369,6 +7369,13 @@ function installContextMenuBridge(window: BrowserWindow) {// usage strings), so the user keeps a real allow/deny and can revoke it in// System Settings afterwards.function isMediaCapturePermission(permission, details) {+ // HTML5 video/audio fullscreen asks the request handler for 'fullscreen'+ // and the check handler for 'automatic-fullscreen'. Both must be allowed+ // or the native fullscreen button on <video controls> does nothing.+ if (permission === 'fullscreen' || permission === 'automatic-fullscreen') {+ return true+ }+if (permission === 'audioCapture' || permission === 'videoCapture') {return true}@@ -7431,6 +7438,7 @@ function installMediaPermissions() {session.defaultSession.setPermissionCheckHandler((_webContents, permission) => {return (permission === 'media' ||+ permission === 'automatic-fullscreen' ||permission === ('audioCapture' as any) /* todo: is this needed? */ ||permission === ('videoCapture' as any))