Skip to content
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

save page method #2654

Closed
Mips128 opened this issue Aug 4, 2022 · 4 comments
Closed

save page method #2654

Mips128 opened this issue Aug 4, 2022 · 4 comments
Labels
feature request feature request tracked We are tracking this work internally.

Comments

@Mips128
Copy link

Mips128 commented Aug 4, 2022

Dear developers,

in several tickets the missing “save page as” function has been discussed. In issue #1090 a work around is proposed to programmatically fire the “Save Page” context menu action. Unfortunately, this does not meet our requirements.

Feature Request
Implement a method to save the current WebView page to mhtml and pass the path via an argument to this method.

Use Case
We implement a program, in which relevant sites are automatically saved for archiving purposes and that the user can later view the sites again. This requires us to save the page including all resources. Therefore, the MHTML format is our preferred method. The user can define a folder to which all pages are saved automatically. Therefore, we do not want to use the above-mentioned work around, because the work around always initiates a SaveFile Dialog.

Other Frameworks
Other WebView widgets provide this functionality already. Qt’s QWebEngine and WxWidget’s WebView implement a save method that does exactly this.

We would be happy to see this as a feature request and to be implemented soon ;) because we prefer WebView2 over options from other frameworks.

In case of any open questions, I am happy to shed some more light on this request.

Best regards
Dennis

AB#40830322

@Mips128 Mips128 added the feature request feature request label Aug 4, 2022
@victorthoang victorthoang added the tracked We are tracking this work internally. label Aug 8, 2022
@victorthoang
Copy link

Thanks for the feedback! We've added this as a scenario on our backlog!

@champnic
Copy link
Member

Hey @Mips128 - We reactivated #1090 to continue tracking adding an API here even though there is a potential workaround. I've added your requirements to that issue and will close this one as a dupe. Feel free to continue the discussion and add info in #1090. Thanks!

@Mips128
Copy link
Author

Mips128 commented Aug 19, 2022

Hey @champnic,

thanks for update on this topic.

@champnic
Copy link
Member

Also FYI - #2038 is tracking work to suppress the "Save" dialog, which would allow the workaround to work, though doesn't necessarily address invoking "Save" easily to begin with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request feature request tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

3 participants