chrome-service: size headed Chrome window to fill Xvfb (noVNC cut-off)
All checks were successful
ci/woodpecker/push/default Pipeline was successful
All checks were successful
ci/woodpecker/push/default Pipeline was successful
The noVNC view showed the browser in the top-left with the rest of the framebuffer black. Cause: Chrome launched with no --window-size, and there's no window manager, so it opened at its profile-persisted (smaller) size inside the 1280x720 Xvfb. Add --window-size=1280,720 --window-position=0,0 so the window fills the screen on every launch (fresh pods/profiles too). Live windows were already resized via CDP as a stopgap. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
c7ead032ec
commit
a3cdc0d6d0
2 changed files with 6 additions and 1 deletions
|
|
@ -170,7 +170,10 @@ minor, with Python-side bindings pre-installed.
|
|||
Authentik-gated. The bare host serves `vnc.html` (image symlinks
|
||||
`index.html → vnc.html`); add `?autoconnect=true&resize=scale&path=websockify`
|
||||
to skip the Connect button. The view is **black when no browser window is
|
||||
open** (idle) — that is normal, not a failed connection.
|
||||
open** (idle) — that is normal, not a failed connection. Chrome is launched
|
||||
with `--window-size=1280,720 --window-position=0,0` to fill the Xvfb screen
|
||||
(no window manager runs, so without it Chrome opens at its profile-persisted
|
||||
size and the rest of the framebuffer shows as a black cut-off).
|
||||
|
||||
### noVNC fd-sweep gotcha (stuck "Connecting")
|
||||
|
||||
|
|
|
|||
|
|
@ -252,6 +252,8 @@ resource "kubernetes_deployment" "chrome_service" {
|
|||
--disable-dev-shm-usage \
|
||||
--password-store=basic \
|
||||
--use-mock-keychain \
|
||||
--window-position=0,0 \
|
||||
--window-size=1280,720 \
|
||||
about:blank
|
||||
EOT
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue