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

Content.ad: Utilize sourceUrl for validation #6537

Merged
merged 2 commits into from
Dec 8, 2016

Conversation

jlucero-contentad
Copy link
Contributor

Updated the Content.ad logic to use the sourceUrl value for publisher domain validation.

Updated the Content.ad logic to use the sourceUrl value for publisher domain validation.
@jlucero-contentad
Copy link
Contributor Author

Travis CI threw the following error:
The command "node build-system/pr-check.js" exited with 1.

Please confirm and restart the test.

@lannka lannka self-assigned this Dec 8, 2016
@jlucero-contentad
Copy link
Contributor Author

jlucero-contentad commented Dec 8, 2016

@lannka I don't understand why I'm getting the following error in the Travis CI test. I defined my sourceUrl variable, but it looks like window.context.sourceUrl is not defined.

ads/contentad.js:36: ERROR - Property sourceUrl never defined on window.context
  let sourceUrl = window.context.sourceUrl;
                                 ^

@lannka
Copy link
Contributor

lannka commented Dec 8, 2016

Could you try adding the following line here

window.context.sourceUrl;

And then run gulp check-types to see if problem remains.

@jlucero-contentad
Copy link
Contributor Author

jlucero-contentad commented Dec 8, 2016

@lannka looks like that did the trick. Am I allowed to modify /build-system/amp.extern.js in this pull request?

@lannka
Copy link
Contributor

lannka commented Dec 8, 2016

Definitely. Thanks for the fix.

@lannka lannka merged commit 6dcfd05 into ampproject:master Dec 8, 2016
Lith pushed a commit to Lith/amphtml that referenced this pull request Dec 22, 2016
* Content.ad: Utilize sourceUrl for validation

Updated the Content.ad logic to use the sourceUrl value for publisher domain validation.

* Expose sourceUrl to ads
Lith pushed a commit to Lith/amphtml that referenced this pull request Dec 22, 2016
* Content.ad: Utilize sourceUrl for validation

Updated the Content.ad logic to use the sourceUrl value for publisher domain validation.

* Expose sourceUrl to ads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants