Skip to content

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

Open
@sane-git

Description

@sane-git

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions