cefsharp / CefSharp

.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
http://cefsharp.github.io/
Other
9.88k stars 2.92k forks source link

[Chrome Runtime] Impossible to use window.open during page load. #4920

Closed max3163 closed 2 months ago

max3163 commented 2 months ago

Is there an existing issue for this?

CefSharp Version

126.2.180 or later

Operating System

Windows 10

Architecture

AnyCPU

.Net Version

4.8

Implementation

WinForms

Reproduction Steps

<!DOCTYPE html>
<html lang="en">
  <head>

  </head>
  <body>
    <script>
      let count = 0;
      function openWindowRec() {
        console.log("Try :" + count );
        if (!window.open('', 'ID321')) {
          setTimeout(() => {
            count++;
            openWindowRec();
          }, 500)
        }
      }
    </script>
  </body>
</html>

Load this simple page which try to open a new window.

Expected behavior

A new window is create directly when window.open call is made.

Actual behavior

Actually nothing happen during many seconds, works only after (about) 10-15 seconds.

Regression?

It works perfectly on 125 and with settings.ChromeRuntime = false parameter

Known Workarounds

use settings.ChromeRuntime = false;

Does this problem also occur in the CEF Sample Application

Not Tested

Other information

No response

amaitland commented 2 months ago

If you discover an issue with the Chrome Runtime then you need to raise the issue on the CEF ISSUE TRACKER

https://github.com/chromiumembedded/cef/issues

Then please post a link in https://github.com/cefsharp/CefSharp/issues/4835

amaitland commented 2 months ago

Thanks.

For reference https://github.com/chromiumembedded/cef/issues/3785

max3163 commented 1 month ago

I re-open this ticket because I just test the issue with the CefClient minimal application and it work as expected ! But it's not the case with the C# Minimal Application. So the problem is on CEfSharp side.

max3163 commented 1 month ago

arf it's not possible to re-open a ticket...????? I will create a new one so...

amaitland commented 1 month ago

arf it's not possible to re-open a ticket...????? I will create a new one so...

Please don't create duplicate issues. In future please ask for the issue to be reopened.

We don't need unnecessary duplicates.

max3163 commented 1 month ago

Ok, sorry, next time I will do that.

But, if it's the process, why don't allow to re-open an issue directly ?