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.
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.
What browsers are affected?
Safari - Desktop and Mobile
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (16 by maintainers)
@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, theresize
request haswidth=407;height=500
, but for Safari 12.1 the numbers arewidth=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.