mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
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.