Files
electron/lib
Shelley Vohr 0bf0dbd07b fix: persist visual zoom level limits across navigations
setVisualZoomLevelLimits previously only called through to the renderer
via IPC, and ElectronBrowserClient::OverrideWebPreferences unconditionally
reset default_minimum/maximum_page_scale_factor to 1.f on every navigation,
wiping out any limits that had been set.

Additionally, for webview guests, Chromium routes touchpad pinch-to-zoom
through the root (embedder) compositor rather than the guest's compositor,
so setting page scale limits on the guest alone had no effect.

This stores the limits in WebContentsPreferences so they survive navigation
resets, and propagates them to the embedder for webview guests.
2026-04-20 08:35:38 +02:00
..