MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Problem/Bug]: Webview2 crashes when web application opens PDF as blob in new window

Open
#5,413 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

What happened?

Our product embeds Webview2 to display web content. There is a scenario where a web application opens multiple PDF documents as blob: URLs in new windows. When opening the third or fourth document in that way, the Webview2 process stack often crashes. The crash pad contained a dump and I'm attaching it. Please fix the issue and/or advise how we could avoid it.

1d38e09d-6854-4f1a-bc52-718d2365b9e8.dmp

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

141.0.3537.99

SDK Version

1.0.2903.48

Framework

Win32

Operating System

Windows 11

OS Version

Windows 11 v10.0.22631 [Enterprise Edition] 64-bit

Repro steps

Web application in Webview2 lists multiple invoices. User chooses to display an invoice. Web application fetches the invoice in PDF format and creates an object url for it, then opens the blob url in new window. This initially works as expected, but when the user displays the third or fourth invoice in that way, the Webview2 process stack crashes. Dump from Crash Pad is attached.

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

  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 with the attached crash dump, 1d38e09d-6854-4f1a-bc52-718d2365b9e8.dmp, and the Win32 WebView2 repro involving multiple PDF blob URLs opened in new windows. Determine the crash cause and whether a fix or supported workaround prevents the WebView2 process from crashing on the third or fourth document.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.