MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Overriding form resubmission dialog
@Lakshmisha-KS is already working on this.
Since Feb 12, 2025.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.