Fix browser pane stuck in HTML fullscreen (#6442) (#6451)

* Fix browser pane stuck in HTML fullscreen (#6442)

Guest content in a browser pane could enter HTML fullscreen but not
exit it: requestFullscreen() resized the host BrowserWindow into native
fullscreen, and exitFullscreen() had nothing to restore, leaving the
pane stuck.

Set the webview's disableHtmlFullscreenWindowResize preference so HTML
fullscreen is contained to the <webview> element. Exit then works and
fullscreenchange fires as guests expect.

* Apply browser guest fullscreen policy consistently

Co-authored-by: Orca <help@stably.ai>

---------

Co-authored-by: Wolfgang Schoenberger <221313372+wolfiesch@users.noreply.github.com>
Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Wolfie
2026-06-26 20:05:47 -07:00
committed by GitHub
co-authored by Orca Wolfgang Schoenberger Jinwoo-H
parent 66b54c4f49
commit 1f968b92c9
7 changed files with 94 additions and 0 deletions
@@ -0,0 +1,5 @@
export const ORCA_BROWSER_GUEST_WEB_PREFERENCES = {
disableHtmlFullscreenWindowResize: true
} as const
export const ORCA_BROWSER_GUEST_WEB_PREFERENCES_ATTRIBUTE = 'disableHtmlFullscreenWindowResize=true'