Skip to content

HTML: dialog form submission - #38819

Merged
annevk merged 3 commits into
masterfrom
annevk/dialog-form
Mar 6, 2023
Merged

annevk merged 3 commits into
masterfrom
annevk/dialog-form

Conversation

@annevk

@annevk annevk commented Mar 5, 2023

Copy link
Copy Markdown
Member

@domenic domenic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess it's too hard to test that https://html.spec.whatwg.org/#the-rules-for-choosing-a-navigable is not called... that algorithm has too many UA-defined points, so it's hard to find a guaranteed way that it returns null (which would cause the pre-whatwg/html#8943 form submission algorithm to bail out) or that it opens a window (which, I guess, you could test with BroadcastChannel).

@annevk
annevk enabled auto-merge (squash) March 6, 2023 01:33
@annevk

annevk commented Mar 6, 2023

Copy link
Copy Markdown
Member Author

If there is a way in which you could prevent web-platform-tests from auto-succeeding window.open(), maybe. That's quite a lot of work though for something that nobody appears to implement. I did add target to make such a path more obviously tested.

@annevk
annevk merged commit bcaa9ec into master Mar 6, 2023
@annevk
annevk deleted the annevk/dialog-form branch March 6, 2023 01:43
annevk added a commit to whatwg/html that referenced this pull request Mar 6, 2023
Also refactor "submit dialog", "close the dialog", and their callers.

Note that removing the open attribute check is safe as "close the dialog" also handles that.

Tests: web-platform-tests/wpt#38819.

Fixes #8499.
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.

4 participants