Skip to content

page load error when popup #4967

Description

@yw0lk1nni9ht

Is there an existing issue for this?

  • I have searched both open/closed issues, no issue already exists.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions