Hacker News new | ask | show | jobs
by jefftk 2571 days ago
I just tested an AMP page in mobile Chrome, and I'm not seeing the behavior you described. Once I scroll up again, the address bar reappears.

Example: https://photos.app.goo.gl/a8A3WukpMiFPMBaNA

(Disclosure: I work for Google)

2 comments

Thx for the reply! I did some more investigation and I can reproduce it the following way:

- go to https://news.google.com and scroll down until the address bar is hidden

- click on any of the AMP links

- the AMP links loads and the address bar is still hidden

- scroll around the page. The address bar only re-appears if I scroll to the very top, otherwise it stays hidden

I use Chrome 74.0.3729.157 on Android 7

Thanks! I see what's happening now: news.google.com is loading AMP links in a width=100% height=100% iframe. This means your scrolling affects the iframe and not the page. Chrome, however, uses scrolling of the top level page to determine whether the address bar should hide/show. So this gives two weird things:

* If you click on an AMP link without scrolling down enough to hide the URL bar, the URL bar remains even as you scroll through the AMP article.

* If you click on an AMP link after scrolling down enough to hide the URL bar (the case you saw), the URL bar stays hidden even if you scroll back up (unless you scroll all the way to the top, at which point you're scrolling the outer page).

I agree this is bad UX, and it happens because the Google News site is loading AMP pages in an iframe. Web Packaging fixes this: https://blog.cloudflare.com/announcing-amp-real-url/

(Disclosure: I work at Google on unrelated things, speaking for myself and not the company)

I was really expecting more then a “Works on my machine” from a google employee ;)
I wonder what they are testing with considering how dysfunctional basic stuff like YouTube pages are on Safari mobile.
I think you're suggesting Safari on iOS is broken.