MicrosoftEdge / MicrosoftEdge/WebView2Samples

The WebView2APISample program sometimes fails to restore the visibility of the webview correctly.

Open
#221 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1k
Forks
521
Avg merge
13m
Merged PRs (30d)
1

Description

Description:
When the sample application window is minimized after being maximized, the bug will reoccur. At this point, if you click on the taskbar icon or switch windows to restore the window to the foreground, the webview will still be invisible unless the window is restored from the maximized state.

Reason:
There is an error in the handling branch of the WM_SIZE message in the ViewComponent::HandleWindowMessage method. The related code only checks for the SIZE_RESTORED message, but in the scenario described above, the window will receive a SIZE_MAXIMIZED message.

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.

Research direction

Start in ViewComponent::HandleWindowMessage and inspect the WM_SIZE handling described in the issue. Reproduce the maximize, minimize, and restore sequence in WebView2APISample; done means the webview becomes visible when the window is restored from either state, including after SIZE_MAXIMIZED.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.