Amphtml: browser back can cause clicks to not working in AMP Cache

Created on 23 Oct 2020  路  8Comments  路  Source: ampproject/amphtml

What's the issue?

browser back can cause clicks to not working in AMP.
However, origin AMP is fine.

How do we reproduce the issue?

  1. Open Google AMP Cache
  2. Make transitions within the site
  3. Browser Back to AMP Cache (AMP Viewer) <- (Click not working here)

What browsers are affected?

I think it will happen at least if you use safari or chrome on iPhone with OS version 13 or higher.

My Device

  • iOS 13.5.1 iphoneSE NG
  • iOS 14.1 iphoneSE NG

VM Device(browserstack.com)

  • iOS 11 iphoneX OK
  • iOS 12 iphoneXS OK
  • iOS 13 iphone8 NG
  • iOS 14 iphone11 NG

Which AMP version is affected?

Version 2010132225002

Screen Capture and AMP Cache URL

-

Bug

All 8 comments

This seems to be a common issue we are seeing recently which is critical in reliability of the application. cc/ @nainar
Reference: https://github.com/ampproject/amphtml/issues/27691#issuecomment-716868604

cc/ @flaviori , @choumx and @ericfs
Have you seen this behaviour?

Thanks for the detailed report. I think I was able to reproduce it.

Repro steps:

Long press to get a link preview does work:

Simulator Screen Shot - iPhone 11 - 2020-11-06 at 16 25 59

As does selecting text.

This makes me think we may be hitting a browser bug of some sort.

I am not able to reproduce when using https://akiba-pc.watch.impress.co.jp/docs/sp/1160/581/amp.index.html
So it does seem to be something about showing the page in the AMP Viewer.

@jridgewell do you have any ideas here? I know Safari had some other scrolling related iframe changes so I'm wondering if this could be somehow related.

Wondering if there's any updates on resolving this issue and the one in https://github.com/ampproject/amphtml/issues/27691. This seem to be an issue for all AMP sites. Are these issues top priority?
@flaviori , @choumx and @ericfs

I think @flaviori was looking to get someone to work on #27691.

For this one, I don't have any additional insight. Pinging @jridgewell for thoughts.

I think this is very likely a Safari bug. One thing that may fix it is to programmatically scroll the page. Something like window.scrollTo(scrollX - 0.1, 0).

@dvoytenko, @jridgewell, who would be a good owner for this issue?
Are either of you in contact with Safari for other scrolling issues? It seems like this would be worth reporting.

@ericfs Any possibility that this might be some sort of a glasspane in the viewer?

Based on my observations, I don't think it is a glasspane. I can scroll within the iframe and once I scroll, I can click on links.

Was this page helpful?
0 / 5 - 0 ratings