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

page load error when popup #4967

Closed yw0lk1nni9ht closed 3 weeks ago

yw0lk1nni9ht commented 3 weeks ago

Is there an existing issue for this?

CefSharp Version

109.1.110

Operating System

Windows 10

Architecture

x64

.Net Version

.net framework 4.7.2

Implementation

WinForms

Reproduction Steps

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Open New Tab Example</title>
    <script>
        function openNewTab() {
            var newTab = window.open('https://www.etax.chinatax.gov.cn/', 'https://www.etax.chinatax.gov.cn/');
            // window.open('https://www.etax.chinatax.gov.cn/','_self');
        }
    </script>
</head>
<body>
    <button onclick="openNewTab()">点击我打开新标签页</button>
</body>
</html>

Use CefSharp.WinForms.Example,open test.html (code show above ),click the button. you can see the page is nothing. but if you clear the cookie, and then change test.html code, use window.open('https://www.etax.chinatax.gov.cn/','_self'); instead of var newTab = window.open('https://www.etax.chinatax.gov.cn/', 'https://www.etax.chinatax.gov.cn/');, the page is load normal.

Expected behavior

load website. error

Actual behavior

request return http code 400. click error11

Regression?

No response

Known Workarounds

No response

Does this problem also occur in the CEF Sample Application

Yes using CefSharp.Winforms.Example. But it is normal in cefclient.exe

Other information

No response