MicrosoftEdge / MicrosoftEdge/WebView2Samples
The WebView2APISample program sometimes fails to restore the visibility of the webview correctly.
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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