Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resizable iframes #2340

Closed
wants to merge 2 commits into from
Closed

Resizable iframes #2340

wants to merge 2 commits into from

Conversation

swissspidy
Copy link
Collaborator

@swissspidy swissspidy commented May 17, 2019

Even though the AMP plugin supports many different embed providers, WordPress does not appear to be one of them.

This PR tries to improve this, so that Story embeds can also use iframes.

Fixes #2301.

@googlebot googlebot added the cla: yes Signed the Google CLA label May 17, 2019
@westonruter
Copy link
Member

@swissspidy If an amp-iframe is trying to load a URL on the same-origin as the host page, it will fail. See https://github.com/ampproject/amphtml/blob/master/spec/amp-iframe-origin-policy.md

See the §Resizing iframe Problem on #809 (comment)

@westonruter westonruter added this to the v1.2 milestone May 21, 2019
@westonruter westonruter changed the base branch from amp-stories-redux to develop May 21, 2019 23:17
@swissspidy
Copy link
Collaborator Author

Somehow I didn't find #914, #809, nor ampproject/amphtml#18378 🤦‍♂

Glad to hear this has been previously been brought up.

@swissspidy swissspidy removed this from the v1.2 milestone Jun 6, 2019
@swissspidy
Copy link
Collaborator Author

If an amp-iframe is trying to load a URL on the same-origin as the host page, it will fail.

Nice that #2712 is aiming to fix that.

@swissspidy
Copy link
Collaborator Author

Closing for now...

@swissspidy swissspidy closed this Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Signed the Google CLA Sanitizers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Iframes for Story Embeds
3 participants