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

alloy: modal dialogs are inappropriately suppressed unless devtools is open #3818

Open
bjdupuis opened this issue Oct 24, 2024 · 2 comments
Open
Labels
alloy-style Related to Chrome runtime + Alloy style bug Bug report windows Windows platform

Comments

@bjdupuis
Copy link

Describe the bug
When using alloy style iframes suppress all modal dialogs with the console message:

A window.confirm() dialog generated by this page was suppressed because this page is not the active tab of the front window. Please make sure your dialogs are triggered by user interactions to avoid this situation. https://www.chromestatus.com/feature/5140698722467840

If the dev tools window is open the modal dialogs are not suppressed.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'this site' using cefclient with alloy style
  2. Click on any of the example dialog invocations. Observe no dialog opens. The green and blue examples should not be suppressed.

Expected behavior
Modals should be opened when appropriate.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

  • OS: Windows 11
  • CEF Version: Tested against 129 through 130

Additional context
Does the problem reproduce with the cefclient or cefsimple sample application at the same version?

Yes.

Does the problem reproduce with Google Chrome at the same version?

No.

Add any other context about the problem here.

@cztomczak
Copy link
Contributor

Looks like this issue also occurs when there are no iframes. In cefclient dialogs test it works randomly - sometimes works ok, other times doesn't work. In my app js dialogs don't work and I don't use iframes.

cztomczak added a commit to cztomczak/phpdesktop that referenced this issue Nov 11, 2024
Log js dialog execution. JS dialogs don't work due to upstream CEF bug:
chromiumembedded/cef#3818
https://magpcss.org/ceforum/viewtopic.php?f=6&t=20041
@magreenblatt magreenblatt added windows Windows platform alloy-style Related to Chrome runtime + Alloy style labels Jan 15, 2025
@magreenblatt magreenblatt changed the title Iframes suppress all modal dialogs with alloy style alloy: Iframes suppress all modal dialogs Jan 15, 2025
@amaitland
Copy link
Contributor

Looks like this issue also occurs when there are no iframes

Confirming the issue is reproducible without an iframe. I don't see any errors in the log file.

Maybe the title can be updated to be more generic?

I've created a very basic example at http://cefsharp.github.io/demo/jsalert.html (src)

Interestingly if you click the button to open the alert, mininmize the cefclient window then restore it's focus the alert is shown.

@bjdupuis bjdupuis changed the title alloy: Iframes suppress all modal dialogs alloy: modal dialogs are inappropriately suppressed unless devtools is open Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alloy-style Related to Chrome runtime + Alloy style bug Bug report windows Windows platform
Projects
None yet
Development

No branches or pull requests

4 participants