Skip to content

[Problem/Bug]: ShowSaveAsUI don't work with custom scheme #5226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jls28 opened this issue May 2, 2025 · 3 comments
Open

[Problem/Bug]: ShowSaveAsUI don't work with custom scheme #5226

jls28 opened this issue May 2, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@jls28
Copy link

jls28 commented May 2, 2025

What happened?

I am using a custom scheme to display a simple html page via
WebResourceRequested/IStream/CreateWebResourceResponse/put_Response.

The first problem : the "Save as" command is not available from the context menu
(same thing happen with the webview2APIsample -> scenario navigate to custom scheme via webResourceRequested).

Second problem : ShowSaveAsUI create a file BUT immediatly delete it
(same thing happen with the webview2APIsample -> navigate to custom scheme via webResourceRequested).

Importance

Moderate. My app's user experience is affected, but still usable.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

134.0.3124.93

SDK Version

1.0.2739.15

Framework

Win32

Operating System

Windows 10

OS Version

19045.4412

Repro steps

webview2APIsample -> navigate to custom scheme via webResourceRequested

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

@jls28 jls28 added the bug Something isn't working label May 2, 2025
@sivMSFT sivMSFT assigned dhveerap and ParadoxZero and unassigned dhveerap May 5, 2025
@ParadoxZero
Copy link

@jls28 Please share a minimal example to understand the problem.

@jls28
Copy link
Author

jls28 commented May 6, 2025

@ParadoxZero
The problem is that I use a custom scheme
to display an internal generated html page
and I would like save the page to a file
but it is impossible because ShowSaveAsUI
don't work and the "Save as" command is not
available from the context menu.

It is similar to the Microsoft webview2APIsample -> scenario navigate to custom scheme via webResourceRequested :

step 1 : goto Scenario "navigate to custom scheme via webResourceRequested"
this goto the page "wv2rocks://domain/ScenarioCustomScheme.html"
step 2 : goto Scenario "Save As"/"Programmatic Save As" : this create a deleted file.

@ParadoxZero
Copy link

@jls28, thanks for the repro steps - let me get back to the thread once I understand it more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants