MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[Problem/Bug]: When opening a Pdf file for the first time by attaching source or nagigate, a black render appears before loading the pdf reader
@monica-ch is already working on this.
Since Aug 8, 2024.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
What happened?
When I add webview2 to Winform, then open a pdf file path, the form's background turns black after showing the pdf reader. This phenomenon only appears the first time. If you open the pdf file next time with different pdf files, it will not appear.
Importance
Blocking. My app's basic functions are not working due to this issue.
Runtime Channel
Stable release (WebView2 Runtime), Prerelease (Edge Canary/Dev/Beta)
Runtime Version
126.0.25.92.102
SDK Version
No response
Framework
Winforms
Operating System
Windows 10
OS Version
Enterprise LTSC 1809
Repro steps
- Add webview 2 to the form with the source attribute being empty
- Create textbox to input pdf and button to open pdf. Use Source assignment for webview 2 (you can also use Nagigate)
- phenomenon of rendering black background and then loading pdf viewer.
Note: It only appears the first time, it doesn't appear the next time
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
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.
Assessment
This issue has not been assessed yet.