Skip to content

Overriding form resubmission dialog #2374

Open
@kjanos0502

Description

@kjanos0502

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

Metadata

Metadata

Assignees

Labels

feature requestfeature requestpriority-lowWe have considered this issue and decided that we will not be able to address it in the near future.trackedWe are tracking this work internally.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions