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

when in ESM mode, copy the the parent runtime CSS into the friendly iframe #30257

Merged
merged 1 commit into from
Sep 21, 2020

Conversation

erwinmombay
Copy link
Member

@erwinmombay erwinmombay commented Sep 16, 2020

This caused a major bug while we were experimenting with ads.

this would silently (because it is pre closure) remove the call for installStylesForDoc in src/friendly-iframe-embed.js which would then break ads because no styles are installed in the friendly iframe.

this was only triggered in the esm build because the "filter-imports" plugin was only turned on in the esm build.

@google-cla google-cla bot added the cla: yes label Sep 16, 2020
@amp-owners-bot
Copy link

Hey @rsimha! These files were changed:

build-system/compile/compile.js

@erwinmombay erwinmombay force-pushed the fix-a4a-ad-2 branch 2 times, most recently from 07ac92c to 8ac5924 Compare September 17, 2020 13:11
@erwinmombay erwinmombay changed the title do not automatically remove ampshared.css as it is needed in amp-ad-doubleclick-impl, etc. when in ESM mode, copy the the parent runtime CSS into the friendly iframe Sep 17, 2020
…oubleclick-impl

copy the styles from the parent window to the child friendly ad iframe
@kristoferbaxter kristoferbaxter merged commit b19ef52 into ampproject:master Sep 21, 2020
ampprojectbot pushed a commit that referenced this pull request Sep 30, 2020
…oubleclick-impl (#30257)

copy the styles from the parent window to the child friendly ad iframe

(cherry picked from commit b19ef52)
ed-bird pushed a commit to ed-bird/amphtml that referenced this pull request Dec 10, 2020
…oubleclick-impl (ampproject#30257)

copy the styles from the parent window to the child friendly ad iframe
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

4 participants