DescriptionAllow zooming error pages.
This CL operates by providing a mechanism in HostZoomMap to convert urls
into the error-page url when an error page is loaded. The error-page
url is used to track the zoom-levels for error pages. Callers to
HostZoomMap::SetZoomLevelForHost*() functions are expected to convert
URLs obtained from NavigationEntrys before setting zoom levels.
HostZoomMap is also modified to add a function to transmit the zoom
level for a newly loaded error page, since it doesn't follow the usual
loading pathway. The transmission of the zoom level is triggered
when an error page is detected in
NavigationControllerImpl::RendererDidNavigateToNewPage().
The CL also creates a localization string to represent error pages in
the Content Settings page list of hosts with non-default zooms, this
since the internal url representations for error pages are not suitable
to be displayed to a user.
BUG=417699
Committed: https://crrev.com/de29ed5dcdeed9400020ee333deda779bd825bda
Cr-Commit-Position: refs/heads/master@{#301707}
Patch Set 1 #
Total comments: 17
Patch Set 2 : Address comments. #
Messages
Total messages: 14 (4 generated)
|