New issue
Advanced search Search tips

Issue 918418 link

Starred by 2 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Save to PDF IO Error Fails Silently

Reported by mooseman...@gmail.com, Jan 1

Issue description

Chrome Version       : 71.0.3578.98
OS Version: 10.0
URLs (if applicable) :
Other browsers tested:
  Add OK or FAIL after other browsers where you have tested this issue:
     Safari:
    Firefox:
    IE/Edge:

What steps will reproduce the problem?
1. Open any page
2. Open print dialog
3. Select Destination: Save as PDF
4. Select a PDF file which already exists on your local drive (and is open in another application; produced with file open in MS Edge)
5. Click "Yes" to the Confirm Save As dialog stating that the file already exists

What is the expected result?
1. The file is overwritten with the new PDF


What happens instead of that?
2. No file write occurs


Please provide any additional information below. Attach a screenshot if
possible.

UserAgentString: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36



 
Observed since at least r272972 enabled PDF printer in Chrome 37.
Apparently, none of the Save As dialogs in Chrome ever showed the standard "File in use" warning (it's usually displayed by apps in Windows at least). The closest Chrome came to an indication of a problem is the ambiguous and misleading "canceled" status when saving pages or downloading into a file that's currently in use.
Here's that standard warning that Chrome doesn't show.
File-In-Use.png
29.0 KB View Download
If anyone's gonna implement this, in Windows this is apparently handled by IFileIsInUse interface:
https://docs.microsoft.com/en-us/windows/desktop/api/shobjidl_core/nn-shobjidl_core-ifileisinuse
Labels: Needs-Triage-M71
Cc: susan.boorgula@chromium.org
Components: Internals>Plugins>PDF
Labels: -Pri-3 Triaged-ET Target-73 M-73 FoundIn-71 FoundIn-73 FoundIn-72 OS-Mac Pri-2
Status: Untriaged (was: Unconfirmed)
mooseman.web@ Thanks for the issue.

Able to reproduce this issue on Windows 10 and Mac OS 10.13.6 on the latest Stable 71.0.3578.98 and latest Canary 73.0.3658.0.
Unable to reproduce the issue on Ubuntu 14.04

This is a Non-Regression issue as this behavior is observed from M-60 chrome builds.
Hence marking this as Untriaged for further updates from Dev.

Thanks..

Sign in to add a comment