fix(welcome): harden kiosk chrome + WebView2 diagnostics (4th e2e — blank wizard) #10
Reference in New Issue
Block a user
Delete Branch "fix/welcome-blank-instrument"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
4th VM e2e — the kiosk now fully works mechanically: Shell Launcher engages, the launcher runs (no error), and the Welcome app launches fullscreen as the kiosk shell. But the Blazor wizard renders blank, and the kiosk chrome didn't apply (title bar still shows). The app process is alive (no crash in the event log) and the WebView2 user-data folder is empty (WebView2 never initialized). WebView2 Runtime itself is present on the image (
EdgeWebView/Application/149.x).Most likely:
ApplyKioskChromethrew duringHandlerChangedand stalled startup before the WebView came up. Since the app doesn't crash, there's nothing to read — so this PR hardens + instruments:ApplyKioskChromedefensive: null-guard HWND/AppWindow, use the FullScreen presenter only (borderless by nature), return a bool; wrapped in try/catch at the call site so a chrome failure can never stall app/WebView startup.C:\ProgramData\SilverMetal\welcome.log: app ctor, CreateWindow, chrome result, unhandled exceptions, and the WebView2 lifecycle (BlazorWebViewInitialized,NavigationCompleted,ProcessFailed). If the wizard is still blank next run, the log pinpoints whether WebView2 env creation failed.Build clean, 0 warnings. Next: rebuild → restage → 5th VM run; read the log off the disk to confirm root cause (and quite possibly the harden alone fixes the blank).
🤖 Generated with Claude Code