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 flicking #10011

Closed
vzhilong opened this issue Sep 25, 2024 · 13 comments
Closed

webview2 flicking #10011

vzhilong opened this issue Sep 25, 2024 · 13 comments
Assignees
Labels
closed-Duplicate Described behavior is already captured by another issue.

Comments

@vzhilong
Copy link

vzhilong commented Sep 25, 2024

My microsoft edge webview2 runtime upgrade to 129.0.2792.52, and when create the webview2 instance there may be a white window flicking and close quickly.

The problem reproduction easily, just open the winui3 gallery app and switch to the webview2 demo page.

Here are my reproduction captures bellow:

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Sep 25, 2024
@vzhilong
Copy link
Author

IMG_5899
IMG_5898

@Zulu-Inuoe
Copy link

We are seeing this same issue. There is a sample project https://github.com/stegru/webview-poc which demonstrates the issue

@stegru
Copy link

stegru commented Sep 25, 2024

webview-flicker

@michael-hawker
Copy link
Collaborator

I can also verify that I saw this in the WinUI Gallery app 2.4.3 on 23H2 22631.4169 when switching to the WebView2 page, there's a briefest flash of a window.

@andresledo
Copy link

I have the same issue, every time it starts it opens a window and closes in milliseconds.

@NikolaiKobzev
Copy link

NikolaiKobzev commented Sep 26, 2024

I've encountered this issue in my project as well, and I also saw it reproduced in the WinUI 3 Gallery.
This window flickers for each WebView2 instance opened in the project.

@stegru
Copy link

stegru commented Sep 26, 2024

Minimal code required:

WebView2 webView2 = new WebView2();
webView2.EnsureCoreWebView2Async();

webView2.EnsureCoreWebView2Async().AsTask().Wait(); will let the phantom window remain (due to the expected deadlock).

@DmitriyKomin DmitriyKomin self-assigned this Sep 27, 2024
@RuddyOne
Copy link

Also having this issue while using MAUI, there is also an issue over there for this.

dotnet/maui#24933

@ITaluone
Copy link

Can verify too

@NicholasChrzan
Copy link

NicholasChrzan commented Sep 27, 2024

Here is the issue on Webview2 GitHub:
MicrosoftEdge/WebView2Feedback#4834

Looks like it affects more than just WinUI and is at its root a WebView2 issue.

@vzhilong
Copy link
Author

Here is the issue on Webview2 GitHub: MicrosoftEdge/WebView2Feedback#4834

Looks like it affects more than just WinUI and is at its root a WebView2 issue.

It seems to be a very obvious excepiton.
I wonder if there is no qa work in MS.

@NicholasChrzan
Copy link

There was a workaround posted in the WebView2 issue:
MicrosoftEdge/WebView2Feedback#4834 (comment)

Environment.SetEnvironmentVariable("WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS", "--window-size=0,0 --window-position=20000,20000");

@DmitriyKomin
Copy link
Contributor

Thanks for linking to the Edge issue and workaround, @NicholasChrzan! It certainly looks like the WebView2Runtime issue described in MicrosoftEdge/WebView2Feedback#4834, so I'm closing this bug.

@microsoft-github-policy-service microsoft-github-policy-service bot removed the needs-triage Issue needs to be triaged by the area owners label Oct 1, 2024
@DmitriyKomin DmitriyKomin added the closed-Duplicate Described behavior is already captured by another issue. label Oct 1, 2024
@DmitriyKomin DmitriyKomin closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-Duplicate Described behavior is already captured by another issue.
Projects
None yet
Development

No branches or pull requests

10 participants