[iOS] Persist Google AMP pages text zoom settings separately
As Text Zoom uses the URL host as its persistence key, Google AMP urls are all persisted under "www.google.com," which is not ideal. To fix this, if the url is an AMP url, identified using the heuristic that all AMP urls are www.<google domain>.com/amp/, the persistence key is www.google.com/amp. Also, when navigating to an AMP page from Google Search/News, no actual navigation takes place. Instead, the page is presented using Javascript. To make sure that the newly "loaded" page has the correct zoom level, the zoom level is set in DidFinishNavigation if the page navigated to is a Google AMP page. Bug: 1063836 Change-Id: I2282cbacf938eaaf0f7d03925dbe9e60b8fee213 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2119541Reviewed-by:Gauthier Ambard <gambard@chromium.org> Commit-Queue: Robbie Gibson <rkgibson@google.com> Cr-Commit-Position: refs/heads/master@{#753625}
Showing
Please register or sign in to comment