Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Cannot Suppress Script Errors with WebView2

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

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp
Domain
desktop

Research direction

The issue mentions a .NET C# Windows Forms app using WebView2 and a webpage that displays script errors; start by reproducing that setup and reviewing the attached screenshot. A complete investigation would need a precise reproduction and an agreed behavior for suppressing the errors, neither of which the issue currently defines.

Written by the indexing model from the issue text.

Description

Dear Team,

I am using WebView2 control inside a .NET C# Windows Forms App. The web page shows a few Script Errors. I have tried out various tricks but it seems I cannot suppress/Avoid these errors from showing up. (None of these errors popup when the same webpage is opened using a regular Edge/Chrome Browser.

Any help in this regard would be appreciated.

image

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

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

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.

More from MicrosoftEdge/WebView2Samples

All issues in MicrosoftEdge/WebView2Samples

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.