MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Overriding form resubmission dialog

Open
#2,374 0 comments 0 reactions 1 assignee View on GitHub

@Lakshmisha-KS is already working on this.

Since Feb 12, 2025.

feature request priority-low tracked
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:
image
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?

AB#39142695

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.