AMP pages never remember scroll position |
||||
Issue descriptionChrome Version : 62.0.3202.84 OS Version: Android 8.0.0 Pixel XL URLs (if applicable) : https://www.google.com/amp/s/www.washingtonpost.com/amphtml/news/morning-mix/wp/2017/11/15/fox-news-shepherd-smith-debunks-his-networks-hillary-clinton-scandal-story-infuriates-viewers/#ampshare=https://www.washingtonpost.com/news/morning-mix/wp/2017/11/15/fox-news-shepherd-smith-debunks-his-networks-hillary-clinton-scandal-story-infuriates-viewers/ Other browsers tested: Add OK or FAIL after other browsers where you have tested this issue: Safari 5: n/a Firefox 4.x: n/a IE 7/8/9: n/a What steps will reproduce the problem? 1. Load any AMP URL, e.g. from Google Feed. Example URL is above. Make sure to "Open in Chrome" 2. Scroll down 3. Make sure Chrome is unloaded from memory, e.g. by pressing the app switcher button and swiping away Chrome 4. Open Chrome again What is the expected result? Scroll position is restored What happens instead of that? Page is loaded and stays at the top Please provide any additional information below. Attach a screenshot if possible.
,
Nov 16 2017
That's because AMP is loaded into an iframe and we only restore scroll for the main frame. This is one of the use cases for document.rootScroller. Though I suppose for this case, AMP could use the pushState API and restore the scroll themselves. +dvoytenko@ in case this isn't a known issue.
,
Nov 19
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Nov 29
Still an issue in 2018 Q4 check in. |
||||
►
Sign in to add a comment |
||||
Comment 1 by divya.pa...@techmahindra.com
, Nov 16 2017