Skip to content

Commit a48a076

Browse files
msfeldsteinMichael Feldsteinclaudemaria-rcks
authored
fix(desktop): allow pointer lock in the built-in browser (#25275)
Co-authored-by: Michael Feldstein <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: maria-rcks <[email protected]>
1 parent ea95364 commit a48a076

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/desktop/src/preview/BrowserSession.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ describe("BrowserSession", () => {
172172
"clipboard-sanitized-write",
173173
"geolocation",
174174
"fullscreen",
175+
"pointerLock",
175176
"loopback-network",
176177
]) {
177178
assert.isTrue(requestAllows(permission), `request handler should allow ${permission}`);

‎apps/desktop/src/preview/BrowserSession.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const ALLOWED_PREVIEW_PERMISSIONS: ReadonlySet<string> = new Set([
2424
"geolocation",
2525
// DesktopWindow confines HTML fullscreen to the guest's webview.
2626
"fullscreen",
27+
"pointerLock",
2728
// Loopback requests already succeed in Electron 44; permission-aware sign-in widgets query first.
2829
"loopback-network",
2930
// Deny local-fonts to untrusted previews: it exposes installed-font fingerprints and file bytes.

0 commit comments

Comments
 (0)