MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Problem/Bug]: WebView2 control flickers after WM_SETREDRAW

Open
#5,184 3 comments 0 reactions 1 assignee View on GitHub

@Badhri is already working on this.

Since Apr 2, 2025.

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

Description

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

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.