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:
@@ -1514,6 +1514,13 @@ initialization
|
|||||||
// Must be set BEFORE the TMS FNC WebBrowser instantiates its
|
// Must be set BEFORE the TMS FNC WebBrowser instantiates its
|
||||||
// CoreWebView2Environment, hence the unit initialization block.
|
// CoreWebView2Environment, hence the unit initialization block.
|
||||||
SetEnvironmentVariable('WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS',
|
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-background-networking ' +
|
||||||
'--disable-sync ' +
|
'--disable-sync ' +
|
||||||
'--disable-component-update ' +
|
'--disable-component-update ' +
|
||||||
|
|||||||
Reference in New Issue
Block a user