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

Expose sourceUrl to amp-ad iframe. #6371

Merged
merged 2 commits into from Nov 29, 2016
Merged

Conversation

lannka
Copy link
Contributor

@lannka lannka commented Nov 28, 2016

Closes #6231

@@ -51,6 +51,7 @@ We will provide the following information to the ad:
In browsers that support `location.ancestorOrigins` you can trust that the `origin` of the
location is actually correct (So rogue pages cannot claim they represent an origin they do not actually represent).
- `window.context.canonicalUrl` contains the canonical URL of the primary document as defined by its `link rel=canonical` tag.
- `window.context.sourceUrl` contains the source URL of the original AMP document.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explain what the differenced from location.href is (Cache relationship).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a link.

@lannka lannka merged commit f4d3aba into ampproject:master Nov 29, 2016
@lannka lannka deleted the sourceUrl branch November 29, 2016 00:30
Lith pushed a commit to Lith/amphtml that referenced this pull request Dec 22, 2016
* Expose sourceUrl to amp-ad iframe.

* Add a link to the spec.
Lith pushed a commit to Lith/amphtml that referenced this pull request Dec 22, 2016
* Expose sourceUrl to amp-ad iframe.

* Add a link to the spec.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants