Skip to content

[Problem/Bug]: WebView2 control flickers after WM_SETREDRAW #5184

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

Open
sane-git opened this issue Mar 31, 2025 · 0 comments
Open

[Problem/Bug]: WebView2 control flickers after WM_SETREDRAW #5184

sane-git opened this issue Mar 31, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@sane-git
Copy link

sane-git commented Mar 31, 2025

What happened?

Hello dear WebView2-Team.

We're running a CDialog derived (MFC) application which hosts an instance of the WebView2 control.
To prevent the application from flickering e.g. in tab change scenarios we WM_SETREDRAW the dialog.

Unfortunately, this causes WebView2 control to partly heavy flicker for any WM_SETREDRAW message issued.

Can you please take a look into the problem?
Is there a way to remedy this flickering problem?

For reproduction convenience I attached a simple demo project to this ticket.

Best regards,
Sascha

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

133.0.3065.92

SDK Version

1.0.3124.44

Framework

Win32

Operating System

Windows 11

OS Version

26100.2894

Repro steps

Please find a demo project attached to this ticket which you can use to reproduce this problem.

WebView2DialogDemo.zip

  1. Unzip the file
  2. Build the project
  3. Run the application

After the dialog shows up the flicker of the WebView2 control starts almost immediately.
The flickering is triggered from within the dialog's OnTimer implementation.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

@sane-git sane-git added the bug Something isn't working label Mar 31, 2025
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

2 participants