MicrosoftEdge / MicrosoftEdge/WebView2Feedback

WebView2 Runtime hang when window.open mulit-level new window in the same target.

Open
#3,664 6 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Description

When window.open set the same target parameter (ex: a) in new window, WebView2 Runtime will hang
WebView App -> new window: pass
new window -> second new window: fail
do not set target: pass

Version
SDK: 1.0.1901.177
Runtime: 115.0.1901.183
Framework: WinForms
OS: Win10 21H2

Repro Steps

  1. Copy below HTML and save as test_sample.html
<!DOCTYPE html>
<html>
<body>
    <button onclick="testWinOpenTest()">window.open() Test</button>
    <script>
        var test_url = 'test_sample.html';

        function testWinOpenTest() {
            window.open(test_url, 'a');
        }
    </script>
</body>
</html>
  1. Open WebView App and go to this file.
  2. Click the button, it will open new window.
  3. Click the button in new window, WebView2 Runtime will hang.

Screenshots
image
image
image

Additional context
This symptom do not occur in Edge or Chrome.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.