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

🐛 fix for parent's baseURI used for iframes #1192

Merged
merged 4 commits into from
Mar 1, 2023

Conversation

itsjwala
Copy link
Contributor

@itsjwala itsjwala commented Mar 1, 2023

  • while serializing the DOM for shadow DOM support in ✨ Shadow DOM serialisation support #1165 we introduced a bug where in we were using document.createDocumentFragment function which creates a fragment of the parent's frame.
  • This will specifically cause issues for DOMs that have iframes and their domain is different since its baseURI would be different from the parent frame.
  • To fix this, we're passing the iframe's document while serializing and using this object to create the fragment.
  • Fixes iFrame missing css #1189

@itsjwala itsjwala marked this pull request as ready for review March 1, 2023 12:39
@itsjwala itsjwala requested a review from samarsault March 1, 2023 12:39
@itsjwala itsjwala requested a review from samarsault March 1, 2023 12:56
@itsjwala itsjwala requested a review from samarsault March 1, 2023 13:06
@itsjwala itsjwala merged commit 66bc2dc into master Mar 1, 2023
@itsjwala itsjwala deleted the jigar/iframe_base_uri_fix branch March 1, 2023 15:16
@itsjwala itsjwala added the 🐛 bug Something isn't working label Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iFrame missing css
2 participants