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(sandbox): add allow-forms so <dialog /> element could work properly #11693

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hanyujie2002
Copy link
Contributor

@hanyujie2002 hanyujie2002 commented Aug 26, 2024

Summary

Fixes #11692
Fixes #11460

Problem

<dialog /> element doesn't work as expected in example of https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog#html-only_dialog. With chrome console, Blocked form submission to '' because the form's frame is sandboxed and the 'allow-forms' permission is not set. is reported.

Solution

I add allow-forms to the sandbox in embed live example file.


Before

After


@hanyujie2002 hanyujie2002 requested a review from a team as a code owner August 26, 2024 14:19
@github-actions github-actions bot added the macros tracking issues related to kumascript macros label Aug 26, 2024
@hanyujie2002
Copy link
Contributor Author

hanyujie2002 commented Aug 26, 2024

P.S. Five months ago I met and fixed a similar problem in playground #10788

@hanyujie2002
Copy link
Contributor Author

image

I am not sure if I should update the test code as well

@github-actions github-actions bot added the idle label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idle macros tracking issues related to kumascript macros
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Playground doesn't allow-forms Dialogs don't work in embed live example
1 participant