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

Add connected check after firing command event #11049

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lukewarlow
Copy link
Member

@lukewarlow lukewarlow commented Feb 19, 2025

Add connected check after firing command event

This guards against an issue with the show-modal command.

FIxes #11043

  • At least two implementers are interested (and none opposed):
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:
    • Chromium: …
    • Gecko: …
    • WebKit: …
    • Deno (only for timers, structured clone, base64 utils, channel messaging, module resolution, web workers, and web storage): …
    • Node.js (only for timers, structured clone, base64 utils, channel messaging, and module resolution): …
  • Corresponding HTML AAM & ARIA in HTML issues & PRs:
  • MDN issue is filed: …
  • The top of this comment includes a clear commit message to use.

(See WHATWG Working Mode: Changes for more details.)


/form-elements.html ( diff )

Copy link
Member

@zcorpan zcorpan left a comment

Choose a reason for hiding this comment

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

LGTM with a comma

@lukewarlow lukewarlow force-pushed the button-activation-show-modal branch from d105664 to 2d9ea35 Compare February 19, 2025 22:10
@lukewarlow
Copy link
Member Author

Added that comma

@lukewarlow lukewarlow requested a review from zcorpan February 20, 2025 12:27
@lukewarlow
Copy link
Member Author

I've moved the check to after the command event is fired that way it covers any other potential issues in future.

@lukewarlow lukewarlow changed the title Add connected check to dialog invoker command steps for show-modal Add connected check after firing command event Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Button activation behavior can call "show a modal dialog" with not-connected dialog
2 participants