-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Modal dialog is too easy to bypass #122520
Comments
Are we (should we) be using the |
Well, we could do browser detection and still use |
There's some trickiness with the alt listener because both event handlers use capture on the same element. I have a fix but I don't want to check it in this late in case there are conflicts with the other consumer (cc @isidorn) |
I'm not sure why I got lucky before with the timing, but the preventDefault just doesn't work for this now. You can bypass the dialog, but at least its not just clicking. Can try something better next week. |
The menubar uses capture because it needs to function "natively" intercepting mnemonics everywhere. the dialog does the same and unfortunately is always going to add its event listener after, so it doesn't have a chance to intercept. I spent some time trying to come up with something but nothing I came up with didn't involve one component having to know about another. as I stated above, the initial "too easy" bypass was clicking which is no longer an option. since we are using a custom dialog, we will not get a truly blocking experience without some more major work that I don't see a need to prioritise. |
To Verify: Check that you cannot click the Custom Menu Bar on Windows. Native menu bars cannot be blocked by the custom dialog. |
Testing #122252
🐛
The text was updated successfully, but these errors were encountered: