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(macros/EmbedLiveSample): move sandbox attr behind ending tag #11292

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

OnkarRuikar
Copy link
Contributor

@OnkarRuikar OnkarRuikar commented Jun 12, 2024

Summary

Problem

sandbox="allow-same-origin allow-scripts is not getting rendered in the build/preview output.

Solution

It is because there is a typo in the EmbedLiveSample macro code. The %> is misplaced.


Screenshots

It is not a visual change.


How did you test this change?

In local before and after change. A after the change the rendered live sample iframe started having sandbox="allow-same-origin allow-script" permission string.

@OnkarRuikar OnkarRuikar requested a review from a team as a code owner June 12, 2024 04:23
@github-actions github-actions bot added the macros tracking issues related to kumascript macros label Jun 12, 2024
@caugner caugner changed the title fix(macros): typo in EmbedLiveSample.ejs fix(macros/EmbedLiveSample): move sandbox attr behind ending tag Jun 12, 2024
@caugner
Copy link
Contributor

caugner commented Jun 12, 2024

@OnkarRuikar Can you update the test expectations in tests/macros/EmbedLiveSample.test.ts? 🙏

PS: Please fill out the pull request description. Thanks!

@OnkarRuikar
Copy link
Contributor Author

Done. Could you make a release right away so that tomorrow I can test the iframe permissions on the live website? Many samples could be broken due to the lack of these permissions...

@caugner caugner merged commit e19cf3d into mdn:main Jun 12, 2024
10 checks passed
@OnkarRuikar OnkarRuikar deleted the patch-2 branch June 13, 2024 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macros tracking issues related to kumascript macros
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The 'Sharing Files' example doesn't work on iOS
2 participants