amphtml: 3P iframe ads failed to show on Safari

What’s the issue?

AMP Iframe not loading in salari browsers. Blocked a frame with origin "https://d-27836143831042096785.ampproject.net" from accessing a frame with origin "https://www.aratips.com". Protocols, domains, and ports must match. Screenshot 2019-04-29 at 12 56 13 PM

How do we reproduce the issue?

https://www.aratips.com/amp/technology/11844/أبل-كوالكوم-سامسونج-5g On checking this url in any salari browser (desktop or mobile) it will throw the blocked iframe error in console without inserting the iframe.

Screenshot 2019-04-29 at 12 59 54 PM

What browsers are affected?

Safari - Desktop and Mobile

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (16 by maintainers)

Most upvoted comments

@anshuman91 thanks for debugging into this. I was able to track down the issue and found out that the iframe removal was caused by an unlayout of amp-embed, because it had zero height.

The zero height was cause by a resize request sent from inside the iframe by some jubna script. In Chrome, the resize request has width=407;height=500, but for Safari 12.1 the numbers are width=407;height=0. I also tested this under Safari Technology Preview (12.2), the issue seems to be fixed.

I’m not sure what logic did Jubna use to calculate the height, but apparently it might hit some issue on Safari 12.1. It will need to be fixed in Jubna (or waiting for 12.2 to be out).

I suggest you contact Jubna developer team for a fix. Let me know if you have any other findings.