Skip to content

fix: keep the zoom level of file: and other host-less pages across fragment navigations - #54441

Merged
codebytere merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-fix-keep-the-zoom-level-of-file-and-other-host-less-pages-across-fragment-navigations-1790419747623
Sep 26, 2026
Merged

codebytere merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-fix-keep-the-zoom-level-of-file-and-other-host-less-pages-across-fragment-navigations-1790419747623

Conversation

@trop

@trop trop Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Backport of #54381

See that PR for details.

Notes: Fixed the zoom level resetting on file: and other host-less pages after a location.hash change.

…agment navigations

HostZoomMap keys zoom levels for URLs without a host by their full spec,
including the fragment, so on a file: page a location.hash change moved
the page to a new key: getZoomLevel() dropped to the default while the
page kept its zoom, and the next zoom in/out was computed from the
default. Carry the upstream fix
(https://chromium-review.googlesource.com/c/chromium/src/+/8467669),
which strips the fragment from the keying URL.

Co-authored-by: Shelley Vohr <[email protected]>
@trop
trop Bot requested a review from a team as a code owner September 26, 2026 10:49
@trop
trop Bot requested a review from codebytere September 26, 2026 10:49
@trop trop Bot added 45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Sep 26, 2026
@codebytere
codebytere enabled auto-merge (squash) September 26, 2026 10:51
@codebytere
codebytere merged commit 29508cb into 45-x-y Sep 26, 2026
91 checks passed
@codebytere
codebytere deleted the trop/45-x-y-bp-fix-keep-the-zoom-level-of-file-and-other-host-less-pages-across-fragment-navigations-1790419747623 branch September 26, 2026 11:58
@release-clerk

release-clerk Bot commented Sep 26, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed the zoom level resetting on file: and other host-less pages after a location.hash change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant