News for hackers. Stuff that matters.
Re:Cake or death: AMP and the worrying power dynamics of the... by yoodenvranx on Wednesday May 29, 2019 @09:36AM (#20039963)
Has anyone noticed that since a few weeks mobile Chrome shows a really curious behavior?

On a normal webpage:

- I scroll down -> address bar is hidden.

- I scroll up a bit and then down again -> address bar is shown

On any AMP page:

- I scroll down a bit -> address bar is hidden

- and then I can scroll in any direction I want and the address bar never appears unless I scroll to the very top

For me that feels like Google wants to keep me inside the AMP page and makes it harder to navigate to a normal page.

Re:Cake or death: AMP and the worrying power dynamics of the... by divs1210 on Wednesday May 29, 2019 @10:42AM (#20040749)
Surfing the web via google results has become a pain, and I try to avoid it as much as possible now.
Re:Cake or death: AMP and the worrying power dynamics of the... by d-sc on Wednesday May 29, 2019 @11:49AM (#20041587)
AMP pages enclose the page you visit within the html of google. So from the browsers perspective it is styling a box, not a scrolling body of text. iOS has similar weird behavior in Safari, and it’s pretty annoying.
Re:Cake or death: AMP and the worrying power dynamics of the... by thegeomaster on Wednesday May 29, 2019 @11:07AM (#20041049)
I noticed this as well. I couldn't think of a benign or accidental explanation for it.
Re:Cake or death: AMP and the worrying power dynamics of the... by jefftk on Wednesday May 29, 2019 @10:12AM (#20040385)
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)

Re:Cake or death: AMP and the worrying power dynamics of the... by yoodenvranx on Wednesday May 29, 2019 @10:29AM (#20040595)
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

Re:Cake or death: AMP and the worrying power dynamics of the... by jefftk on Wednesday May 29, 2019 @01:52PM (#20043258)
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)

Re:Cake or death: AMP and the worrying power dynamics of the... by loriverkutya on Wednesday May 29, 2019 @10:19AM (#20040473)
I was really expecting more then a “Works on my machine” from a google employee ;)
Re:Cake or death: AMP and the worrying power dynamics of the... by AJ007 on Wednesday May 29, 2019 @12:11PM (#20041956)
I wonder what they are testing with considering how dysfunctional basic stuff like YouTube pages are on Safari mobile.
Re:Cake or death: AMP and the worrying power dynamics of the... by bitpush on Wednesday May 29, 2019 @12:44PM (#20042389)
I think you're suggesting Safari on iOS is broken.