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

LibWeb: Implement dialog.requestClose() #3280

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

Conversation

lukewarlow
Copy link
Contributor

@lukewarlow lukewarlow commented Jan 16, 2025

See https://html.spec.whatwg.org/multipage/interaction.html#dom-closewatcher-requestclose

Can manually test using https://wpt.live/html/semantics/interactive-elements/the-dialog-element/dialog-requestclose.html where it passes all tests.

If I import the test it's flaky and sometimes fails on test runner.

@lukewarlow
Copy link
Contributor Author

lukewarlow commented Jan 16, 2025

The test passes when running in the browser and when imported, but if I run with the test runner I get same error as CI, it seems something is flaky and can lead to two close events being fired (at least according to the test)

It makes use of abort signal and I'm wondering if there's an issue with Ladybird's impl?

@lukewarlow lukewarlow marked this pull request as ready for review January 16, 2025 21:28
Copy link

Your pull request has conflicts that need to be resolved before it can be reviewed and merged. Make sure to rebase your branch on top of the latest master.

@github-actions github-actions bot added the conflicts Pull request has merge conflicts that need resolution label Jan 21, 2025
@github-actions github-actions bot removed the conflicts Pull request has merge conflicts that need resolution label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant