chromiumembedded / cef

Chromium Embedded Framework (CEF). A simple framework for embedding Chromium-based browsers in other applications.
https://bitbucket.org/chromiumembedded/cef/
Other
3.38k stars 467 forks source link

Iframes suppress all modal dialogs with alloy style #3818

Open bjdupuis opened 4 weeks ago

bjdupuis commented 4 weeks ago

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):

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 commented 1 week ago

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.