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

Disallow passing ampdoc to FIE service getters #19730

Merged
merged 11 commits into from
Dec 13, 2018

Conversation

dreamofabear
Copy link

@dreamofabear dreamofabear commented Dec 7, 2018

Requires #19602 to be merged. Partial for #16322.

All FIE-supported services are already migrated off of ampdoc. This PR changes the signature/implementation of the underlying service getter to ensure that new FIE services won't be able to pass AmpDoc. Also cleans up a few unused functions etc.

Next:

  • Disallow passing ampdoc to all element services (getElementServiceForDoc).
  • Combine "window" and "forDoc" element service getters.

@dreamofabear
Copy link
Author

/to @jridgewell

@dreamofabear dreamofabear merged commit bc4d012 into ampproject:master Dec 13, 2018
@dreamofabear dreamofabear deleted the no-ampdoc-fie-getter branch December 13, 2018 20:35
cathyxz pushed a commit to cathyxz/amphtml that referenced this pull request Dec 17, 2018
* Remove ampdoc for getting FIE services.

* Remove deprecated service getter.

* Remove unused FIE window service getter and inlined helper fn.

* Simplify some comments.

* Fix test-url-replacements.js.

* Fix test-standard-actions.js.

* Fix several more tests.

* Fix lint.

* Fix test-amp-form and test-amp-gwd-animation.
noranazmy pushed a commit to noranazmy/amphtml that referenced this pull request Mar 22, 2019
* Remove ampdoc for getting FIE services.

* Remove deprecated service getter.

* Remove unused FIE window service getter and inlined helper fn.

* Simplify some comments.

* Fix test-url-replacements.js.

* Fix test-standard-actions.js.

* Fix several more tests.

* Fix lint.

* Fix test-amp-form and test-amp-gwd-animation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants