amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

amp-ad: clicking on an ad in safari causes the ad to disappear on returning to the page

Open harquail opened this issue 8 years ago • 7 comments

What's the issue?

We're seeing this behavior on our ads in Safari, which may be related to the amp framework. After clicking on an ad and going back, the ad does not display

amp_resize_after_click

How do we reproduce the issue?

  1. Visit https://qa.yieldmo.com/test/amp?ym_force_pname=&adResponseInput=&rf_force_lf=&rf_force_p=1300637378475834068&ym_force_configuration=&environment=AMP in mobile emulation
  2. Click on the Ad
  3. Go back
  4. Expectation is that the ad would display/resize the same as if loaded in the viewport

What browsers are affected?

Only Safari, using Version 11.1 (13605.1.33.1.2)

Which AMP version is affected?

amp Version 1531800879103

harquail avatar Jul 24 '18 16:07 harquail

fyi @merrdy

harquail avatar Jul 24 '18 16:07 harquail

I was able to reproduce with simulator back to safari 9.0

I noticed that whenever I had the console opened to inspect the page, the issue was gone. And the previous ad was displayed before rather than the ad loader whenever the issue occurred. Given that I suspect that it has something to do with the Safari back-forward cache. I'll further investigate.

zhouyx avatar Jul 24 '18 20:07 zhouyx

@harquail I can confirm that this is due to the Safari back-forward cache. If I reload the page the issue is gone.

I've tested with another image ad, and the image ad works ok. I've also tested with a scrollbound animation ad that's implemented in AMP and it works fine too. At this point I wonder if it's somecode within the ad creative that cause the ad to break due to the back-forward cache. Does the same ad creative works with non AMP page? If so do you think it's because there's some information missing from the parent AMP page at the pageshow event. Thanks

zhouyx avatar Jul 25 '18 16:07 zhouyx

The same creative works outside of amp (eg. https://qa.yieldmo.com/test/cop?ym_force_pname=&adResponseInput=&rf_force_lf=&rf_force_p=1300637378475834068&ym_force_configuration=&environment=COP). We can do more investigation on our side to see what the root cause is.

harquail avatar Jul 25 '18 16:07 harquail

This issue hasn't been updated in awhile. @zhouyx Do you have any updates?

ampprojectbot avatar Nov 28 '18 02:11 ampprojectbot

@harquail is this still an issue for you all?

calebcordry avatar Jul 03 '19 20:07 calebcordry

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 24 '20 23:12 stale[bot]