MicrosoftEdge / MicrosoftEdge/WebView2Feedback

API equivalent for Webview1.LongRunningScriptDetected?

Open
#2,141 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

We'd like to detect if a javascript script froze because we load external javascript which we have no control over.
So we'd need to terminate any long running javascript code.

In Webview1 this could be done using the LongRunningScriptDetected event.

Does webview2 have any equivalent events? I'm not able to find it.

I tried webview2.CoreWebView2.ProcessFailed but it doesn't detect the freeze.

AB#38097345

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 by reviewing the WebView1 LongRunningScriptDetected event and the WebView2 CoreWebView2.ProcessFailed behavior described in the issue. Check the WebView2 API surface for an equivalent event or supported way to terminate frozen external JavaScript, and use the linked AB#38097345 work item for related context. Done means the supported capability or its absence is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.