Skip to content

Small Validator Updates, including blacklisting __amp_source_origin for URLs.#4781

Merged
powdercloud merged 4 commits intoampproject:masterfrom
powdercloud:tgit-haha
Aug 30, 2016
Merged

Small Validator Updates, including blacklisting __amp_source_origin for URLs.#4781
powdercloud merged 4 commits intoampproject:masterfrom
powdercloud:tgit-haha

Conversation

@powdercloud
Copy link
Copy Markdown
Contributor

No description provided.

@Gregable
Copy link
Copy Markdown
Member

lgtm

@powdercloud powdercloud merged commit bffeb2d into ampproject:master Aug 30, 2016
@powdercloud powdercloud deleted the tgit-haha branch August 30, 2016 23:18
jridgewell pushed a commit that referenced this pull request Sep 15, 2016
* Implement anchor href expand on document click with X/Y support

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* fix javadoc error

* Update amp-ad-network-doubleclick-impl.md

* Reverting doc changes

The previous change was made in error (wrong branch).

* changes in response to PR review

* update var substititions documentation

* make capture listener actually use capture!

* remove unnecessary else clause

* fix pull conflicts

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* fix javadoc error

* changes in response to PR review

* update var substititions documentation

* make capture listener actually use capture!

* remove unnecessary else clause

* fix test failure due to issue after merge

* address PR comments

* Implement anchor href expand on document click with X/Y support

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* fix javadoc error

* changes in response to PR review

* update var substititions documentation

* make capture listener actually use capture!

* remove unnecessary else clause

* fix pull conflicts

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* changes in response to PR review

* fix test failure due to issue after merge

* Revert "reenable history tests (#4758)"

This reverts commit 1375883.

* Revert "Reverting doc changes"

This reverts commit 8d8c6dd.

* Revert "Small Validator Updates, including blacklisting __amp_source_origin for URLs. (#4781)"

This reverts commit bffeb2d.

* Revert "Remove video-id from the amp-youtube extension runtime. This attr had (#4507)"

This reverts commit 8d1799d.

* Revert unintentionally added files.

* Revert unintentionally added file.

* Fix test failure from latest merge

* Fix conflict and lint errors

* Fix lint errors, type check failures, and test failures
dreamofabear pushed a commit to dreamofabear/amphtml that referenced this pull request Sep 16, 2016
…roject#4773)

* Implement anchor href expand on document click with X/Y support

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* fix javadoc error

* Update amp-ad-network-doubleclick-impl.md

* Reverting doc changes

The previous change was made in error (wrong branch).

* changes in response to PR review

* update var substititions documentation

* make capture listener actually use capture!

* remove unnecessary else clause

* fix pull conflicts

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* fix javadoc error

* changes in response to PR review

* update var substititions documentation

* make capture listener actually use capture!

* remove unnecessary else clause

* fix test failure due to issue after merge

* address PR comments

* Implement anchor href expand on document click with X/Y support

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* fix javadoc error

* changes in response to PR review

* update var substititions documentation

* make capture listener actually use capture!

* remove unnecessary else clause

* fix pull conflicts

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* changes in response to PR review

* fix test failure due to issue after merge

* Revert "reenable history tests (ampproject#4758)"

This reverts commit 1375883.

* Revert "Reverting doc changes"

This reverts commit 8d8c6dd.

* Revert "Small Validator Updates, including blacklisting __amp_source_origin for URLs. (ampproject#4781)"

This reverts commit bffeb2d.

* Revert "Remove video-id from the amp-youtube extension runtime. This attr had (ampproject#4507)"

This reverts commit 8d1799d.

* Revert unintentionally added files.

* Revert unintentionally added file.

* Fix test failure from latest merge

* Fix conflict and lint errors

* Fix lint errors, type check failures, and test failures
jridgewell pushed a commit that referenced this pull request Sep 20, 2016
… support (#5053)

* Implement anchor href expand on document click with X/Y support

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* fix javadoc error

* Update amp-ad-network-doubleclick-impl.md

* Reverting doc changes

The previous change was made in error (wrong branch).

* changes in response to PR review

* update var substititions documentation

* make capture listener actually use capture!

* remove unnecessary else clause

* fix pull conflicts

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* fix javadoc error

* changes in response to PR review

* update var substititions documentation

* make capture listener actually use capture!

* remove unnecessary else clause

* fix test failure due to issue after merge

* address PR comments

* Implement anchor href expand on document click with X/Y support

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* fix javadoc error

* changes in response to PR review

* update var substititions documentation

* make capture listener actually use capture!

* remove unnecessary else clause

* fix pull conflicts

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* changes in response to PR review

* fix test failure due to issue after merge

* Revert "reenable history tests (#4758)"

This reverts commit 1375883.

* Revert "Reverting doc changes"

This reverts commit 8d8c6dd.

* Revert "Small Validator Updates, including blacklisting __amp_source_origin for URLs. (#4781)"

This reverts commit bffeb2d.

* Revert "Remove video-id from the amp-youtube extension runtime. This attr had (#4507)"

This reverts commit 8d1799d.

* Revert unintentionally added files.

* Revert unintentionally added file.

* Fix test failure from latest merge

* Fix conflict and lint errors

* Fix lint errors, type check failures, and test failures

* Fix test failures

* Remove Math.random override causing breakages in other tests

* PR comment feedback

* PR review changes

* PR code review

* PR review

* Address error in issue #5113

* PR review
mityaha pushed a commit to brightcove-archive/ooyala_amphtml that referenced this pull request Nov 30, 2016
…or URLs. (ampproject#4781)

* Blacklist __amp_source_origin for URL values (and input.name).

* Broaden the blacklist for attr values by testing the URL unescaped variant as well.

* Tweak A4A CSS error messages.

* spec file bump due to Github Pull
mityaha pushed a commit to brightcove-archive/ooyala_amphtml that referenced this pull request Nov 30, 2016
…roject#4773)

* Implement anchor href expand on document click with X/Y support

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* fix javadoc error

* Update amp-ad-network-doubleclick-impl.md

* Reverting doc changes

The previous change was made in error (wrong branch).

* changes in response to PR review

* update var substititions documentation

* make capture listener actually use capture!

* remove unnecessary else clause

* fix pull conflicts

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* fix javadoc error

* changes in response to PR review

* update var substititions documentation

* make capture listener actually use capture!

* remove unnecessary else clause

* fix test failure due to issue after merge

* address PR comments

* Implement anchor href expand on document click with X/Y support

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* fix javadoc error

* changes in response to PR review

* update var substititions documentation

* make capture listener actually use capture!

* remove unnecessary else clause

* fix pull conflicts

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* changes in response to PR review

* fix test failure due to issue after merge

* Revert "reenable history tests (ampproject#4758)"

This reverts commit 1375883.

* Revert "Reverting doc changes"

This reverts commit 8d8c6dd.

* Revert "Small Validator Updates, including blacklisting __amp_source_origin for URLs. (ampproject#4781)"

This reverts commit bffeb2d.

* Revert "Remove video-id from the amp-youtube extension runtime. This attr had (ampproject#4507)"

This reverts commit 8d1799d.

* Revert unintentionally added files.

* Revert unintentionally added file.

* Fix test failure from latest merge

* Fix conflict and lint errors

* Fix lint errors, type check failures, and test failures
mityaha pushed a commit to brightcove-archive/ooyala_amphtml that referenced this pull request Nov 30, 2016
… support (ampproject#5053)

* Implement anchor href expand on document click with X/Y support

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* fix javadoc error

* Update amp-ad-network-doubleclick-impl.md

* Reverting doc changes

The previous change was made in error (wrong branch).

* changes in response to PR review

* update var substititions documentation

* make capture listener actually use capture!

* remove unnecessary else clause

* fix pull conflicts

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* fix javadoc error

* changes in response to PR review

* update var substititions documentation

* make capture listener actually use capture!

* remove unnecessary else clause

* fix test failure due to issue after merge

* address PR comments

* Implement anchor href expand on document click with X/Y support

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* fix javadoc error

* changes in response to PR review

* update var substititions documentation

* make capture listener actually use capture!

* remove unnecessary else clause

* fix pull conflicts

* Fixes after full stack testing: need to look at event path due to event target rewrite for shadowDom elements; was not binding whether capture to click handler properly.  Test coverage for fixes to be added shortly

* update tests; instead of looking for shadowRoot boundary to update x/y offset, look for existence of event.path and use event.target which should match host element

* slight refactor for readability

* changes in response to PR review

* fix test failure due to issue after merge

* Revert "reenable history tests (ampproject#4758)"

This reverts commit 1375883.

* Revert "Reverting doc changes"

This reverts commit 8d8c6dd.

* Revert "Small Validator Updates, including blacklisting __amp_source_origin for URLs. (ampproject#4781)"

This reverts commit bffeb2d.

* Revert "Remove video-id from the amp-youtube extension runtime. This attr had (ampproject#4507)"

This reverts commit 8d1799d.

* Revert unintentionally added files.

* Revert unintentionally added file.

* Fix test failure from latest merge

* Fix conflict and lint errors

* Fix lint errors, type check failures, and test failures

* Fix test failures

* Remove Math.random override causing breakages in other tests

* PR comment feedback

* PR review changes

* PR code review

* PR review

* Address error in issue ampproject#5113

* PR review
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.

3 participants