Skip to content

Clean up focusing in dialog-closedby-start-open.html#58788

Closed
ltenmoz wants to merge 1 commit into
web-platform-tests:masterfrom
ltenmoz:fix-dialog-closedby-start-open
Closed

Clean up focusing in dialog-closedby-start-open.html#58788
ltenmoz wants to merge 1 commit into
web-platform-tests:masterfrom
ltenmoz:fix-dialog-closedby-start-open

Conversation

@ltenmoz

@ltenmoz ltenmoz commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

The test claims that setting open = false restores focus to the previous element but I think it is actually the mysteriously-placed window.getSelection().addRange(document.createRange()); that's doing that (at least, right now it's passing on Chrome stable even though restoring focus with open = false is not implemented there).
(Arguably this should be a tentative test since whatwg/html#10124 is not merged but I don't know how strict people are about that…)

@ltenmoz ltenmoz requested a review from a team as a code owner March 26, 2026 20:09
@wpt-pr-bot wpt-pr-bot requested review from annevk, foolip, jdm and jgraham March 26, 2026 20:09
@ltenmoz ltenmoz force-pushed the fix-dialog-closedby-start-open branch from 93de2e5 to 226b879 Compare March 26, 2026 20:26
@ltenmoz ltenmoz force-pushed the fix-dialog-closedby-start-open branch from 226b879 to f32ff49 Compare March 26, 2026 20:30
@ltenmoz ltenmoz changed the title Use close() instead of open = false in dialog-closedby-start-open.html Clean up focusing in dialog-closedby-start-open.html Mar 26, 2026
@ltenmoz

ltenmoz commented Mar 26, 2026

Copy link
Copy Markdown
Contributor Author

hmm actually there is now some problem on chrome canary…

@ltenmoz ltenmoz closed this Mar 26, 2026
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.

3 participants