MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
452 stars 55 forks source link

API equivalent for Webview1.LongRunningScriptDetected? #2141

Open MatevzRopret opened 2 years ago

MatevzRopret commented 2 years ago

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

champnic commented 2 years ago

Thanks for the feature request @MatevzRopret! I've added this scenario to our backlog.