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 crash introduced in #22874 #22884

Merged
merged 1 commit into from
Nov 8, 2024
Merged

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Nov 7, 2024

No description provided.

Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

Can we add a test for this?

@sbc100
Copy link
Collaborator Author

sbc100 commented Nov 8, 2024

Can we add a test for this?

I think writing an automated test would be non-trivial, and given how many gaps we have in automatic GUI testing I'm not sure its worth it.

@sbc100
Copy link
Collaborator Author

sbc100 commented Nov 8, 2024

I think I would need to simulate a visibilitychange or blur event in between key presses.

@sbc100 sbc100 merged commit ffeb761 into emscripten-core:main Nov 8, 2024
28 checks passed
@sbc100 sbc100 deleted the fix_crash branch November 8, 2024 01:07
@kripken
Copy link
Member

kripken commented Nov 8, 2024

I agree it's non-trivial, but I think we can simulate such events like we do keypresses and mouse moves, and interleave it with them. The order of such event handling is deterministic. I'm just worried we have big gaps in testing of those GUI APIs, and it would be good to think about improving it, basically.

@sbc100
Copy link
Collaborator Author

sbc100 commented Nov 8, 2024

I agree it's non-trivial, but I think we can simulate such events like we do keypresses and mouse moves, and interleave it with them. The order of such event handling is deterministic. I'm just worried we have big gaps in testing of those GUI APIs, and it would be good to think about improving it, basically.

I totally agree. I'll take a look at this one. My reaction was basically broken windows syndrome I suppose: There are way bigger and more important gaps than this one :)

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.

2 participants