Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yoyo890121 opened this issue Jul 27, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@yoyo890121
Copy link

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.

@yoyo890121 yoyo890121 added the bug Something isn't working label Jul 27, 2023
@yoyo890121
Copy link
Author

Hi @yunate , can you reproduce this issue?

@yoyo890121
Copy link
Author

Hi @yunate , any update?

@victorhuangwq
Copy link
Collaborator

Hi @yoyo890121 are you still facing this issue?

@yoyo890121
Copy link
Author

Hi @victorhuangwq , this issue still occur.
Runtime: 119.0.2151.58

@victorhuangwq
Copy link
Collaborator

I don't think the issue is reproing for me. In my case, it just doesn't do anything.

I am however, running 121.0.2234.0 canary. My SDK build is 2194.0

@yoyo890121
Copy link
Author

Could you click the button more the once?

Runtime: 119.0.2151.72
SDK: 2194.0

2023-11-23.09.01.00.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants