perf(autofill): keep WebView2 renderer responsive while in tray

Add --disable-renderer-backgrounding / -backgrounding-occluded-windows /
-background-timer-throttling to the WebView2 args. Without them Chromium
freezes a hidden renderer, so the first autofill hotkey after a tray-only
start (Start with Windows) waited 3-5s for onAutofillRequest to run.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
r-zakarya
2026-07-11 18:32:14 +01:00
parent 45ba47f772
commit 0925afb689
+7
View File
@@ -1514,6 +1514,13 @@ initialization
// Must be set BEFORE the TMS FNC WebBrowser instantiates its
// CoreWebView2Environment, hence the unit initialization block.
SetEnvironmentVariable('WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS',
// Keep the renderer responsive while the window is hidden in the tray.
// Without these, Chromium freezes/throttles a backgrounded renderer, so
// the first autofill hotkey after a tray-only start (Start with Windows)
// waits 3-5s for the renderer to wake before onAutofillRequest runs.
'--disable-background-timer-throttling ' +
'--disable-backgrounding-occluded-windows ' +
'--disable-renderer-backgrounding ' +
'--disable-background-networking ' +
'--disable-sync ' +
'--disable-component-update ' +