Within the WebView2 control a html form with javascript is loaded, the form uses window.onunload and some other html forms I use window.onbeforeunload to call unlock methods on C# Host objects. The ...