Skip to content

[Problem/Bug]: Saved PDF from print dialog option "Save as PDF" is deleted after WebView2 dispose #5199

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
rvoelkel-nest opened this issue Apr 11, 2025 · 3 comments
Assignees
Labels
bug Something isn't working regression Something used to work but doesn't anymore tracked We are tracking this work internally.

Comments

@rvoelkel-nest
Copy link

What happened?

When printing with Save as PDF option, saved PDF file is deleted, after app is closed with WebView2 component.

Happens in my app, in Outlook and also tested with WebView2WpfBrowser from WebView2Samples.

Was working with local installed WebView2 Runtime 105.0.1343.33, but not with current systemwide installed.

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

135.0.3179.54

SDK Version

1.0.3179.45

Framework

WPF

Operating System

Windows 11

OS Version

No response

Repro steps

  • Open app with WebView2 content
  • Open print dialog with Ctrl + P
  • Select "Print as PDF"
  • Save PDF
  • Close app
  • Saved PDF is deleted

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Regression in newer Runtime

Last working version (if regression)

No response

@rvoelkel-nest rvoelkel-nest added the bug Something isn't working label Apr 11, 2025
@github-actions github-actions bot added the regression Something used to work but doesn't anymore label Apr 11, 2025
@ajtruckle
Copy link

I find this happens when using the pre release SDK. But stable was ok. Although it stopped showing the small window at top right after print when you can launch from.

@jensppi
Copy link

jensppi commented Apr 16, 2025

After update to WebView2 135.0.3179.73: open an image via Ctrl-Click in a new window. Choose 'Save image as' from context menu. The file dialog opens. Choose you destination folder and save. A temp file like c2b6a7fc-c5e4-43b7-95d5-43a921535095.tmp is created, but it never become your image file. After WebView dispose the temp file is deleted.

Also see #5196

@ambikakunnath
Copy link
Member

Thanks for reporting the issue. I could repro the issue with WPF samples. Opened internal bug to track this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Something used to work but doesn't anymore tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

4 participants