Skip to content

[Problem/Bug]: POSTing large files, when inetercepting resource request crashes WebView #5651

Description

@swilhelmi

What happened?

Steps to reproduce

  1. Attach event handler to CoreWebView2.WebResourceRequested

In Browser:

  1. Select file (>1.5GB, did so far not figure out the actual limit 100MB work fine) for upload
  2. POST file as FormData

Expected Result

Event handler receives the large payload

Actual result

WebView crashes.

Crash Produces a Windows event log entry containing:

[24884:17392:0722/143309.519:INFO:chrome\browser\extensions\extension_garbage_collector.cc:188] Garbage collection for extensions on file thread is complete.

Importance

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

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

1.0.3800.47

SDK Version

No response

Framework

WPF

Operating System

Windows 11

OS Version

No response

Repro steps

Steps to reproduce

  1. Attach event handler to CoreWebView2.WebResourceRequested

In Browser:

  1. Select file (>1.5GB, did so far not figure out the actual limit 100MB work fine) for upload
  2. POST file as FormData

Expected Result

Event handler receives the large payload

Actual result

WebView crashes.

Crash Produces a Windows event log entry containing:

[24884:17392:0722/143309.519:INFO:chrome\browser\extensions\extension_garbage_collector.cc:188] Garbage collection for extensions on file thread is complete.

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

Metadata

Metadata

Assignees

No one assigned

    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