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

Fixed typo in fixed-elements-in-lightbox experiment #21057

Merged
merged 5 commits into from Feb 25, 2019

Conversation

dreamofabear
Copy link

@dreamofabear dreamofabear commented Feb 25, 2019

Follow-up to #20954. Fixes a typo and potential DOMException due to reading CORS stylesheet (e.g. fonts).

/to @jridgewell

this.discoverSelectors_(cssRules);
// Don't dereference cssRules we need to avoid "Can't access rules"
// DOMException due to reading a CORS stylesheet e.g. font.
this.discoverSelectors_(stylesheet.cssRules);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add a try-catch?

Copy link
Author

Choose a reason for hiding this comment

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

Searched error reporter for "cssRules" and only saw one report from amp-animation.

@dreamofabear dreamofabear merged commit faca0c8 into ampproject:master Feb 25, 2019
@dreamofabear dreamofabear deleted the fixed-elements-doh branch February 25, 2019 22:56
noranazmy pushed a commit to noranazmy/amphtml that referenced this pull request Mar 22, 2019
* i-amphtml-lightbox, not lightboxed.

* Use consts and add test.

* Revert img src.

* Fix DOMException due to CORS stylesheet.

* Fix comment.
bramanudom pushed a commit to bramanudom/amphtml that referenced this pull request Mar 22, 2019
* i-amphtml-lightbox, not lightboxed.

* Use consts and add test.

* Revert img src.

* Fix DOMException due to CORS stylesheet.

* Fix comment.
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.

None yet

3 participants