Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flag to prevent save as dialogue showing
Hi there. This isn't an issue in running code in the IDE but after compiling, edge will always open the save as dialogue when I click 'Save as'. How do I stop this from showing as I am handling the download operation separately. Does this need to be set using the browsers flags or can it be done another way?


Based on our earlier emails, I assume that you are talking about using the context menu option "Save Image as" when selecting an image.
As I mentioned, I was surprised that it even went through the OnDownloadStarting event.

When you click on a link that initiates a download operation, you can override the "save as" dialog by setting the "Handled" parameter to true.
This does not seem to work for your "Save Image as" scenario.

The difference between showing a "save as" dialog and not appears to be due to starting the app with administrator privileges. Which is a WebView2 bug that Microsoft is tracking here:

As I was pretty sure that this is not a AntView issue itself I just spent some time and reproduced your issue in .net with the WebView2 control from Microsoft.

When I debug it there, the "save as" dialog is actually popped up before it hits the event. Which explains that you can't set anything in the event. It looks like that we're going to have to ask Microsoft is this is by design or if it was missed.

There's a contextmenu API which might help (adding your own "save as" option), but it isn't available yet in the C++ SDK we're currently building against.
I also see some debate here, but I doubt it is useful.

Sorry don't have a satisfying answer on this one yet.
Logged it with MS here:

Let's see what they say.

Forum Jump:

Users browsing this thread: 1 Guest(s)