Open
Description
We have a legacy WinForms application with a fixed (320p) width hosting a WebView2 component.
Because of the small, fixed width, browser pop-ups are not appearing correctly.
We could use
this.webView2.CoreWebView2.Settings.AreDefaultScriptDialogsEnabled = false;
this.webView2.CoreWebView2.ScriptDialogOpening += CoreWebView2_ScriptDialogOpening;
to hook up to alerts being sent and show a custom pop-up on the screen.
The only built-in window we can not customize is the form resubmission dialog:
It does not fit into the allocated area and neither of the overrideable dialog kinds (alert, confirm, prompt, onbeforeunload) helps us in this scenario.
Is there a possibility to expose an API to override this form resubmission dialog?