New issue
Advanced search Search tips

Issue 883334 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

File name from Content-Disposition is not displayed when opening PDF

Reported by marton.k...@curvedental.com, Sep 12

Issue description

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

Steps to reproduce the problem:
1. Open a PDF without the /Title attribute specified  
2. Make sure the response has the filename set in the Content-Disposition header
3. The title of the tab and the title in Chrome's PDF viewer shows the name of the file, not the contents of the filename field

What is the expected behavior?
The file name given in the Content-Disposition header should be displayed

What went wrong?
The filename from Content-Disposition is used as default only when saving the file, but not when displaying it or when printing as PDF.

Did this work before? N/A 

Chrome version: 69.0.3497.92  Channel: stable
OS Version: 10.0
Flash Version:
 
Labels: Needs-Triage-M69
Components: -UI Internals>Plugins>PDF
Do you have a link to a PDF that can demonstrate this issue?
Labels: Needs-Feedback
Project Member

Comment 5 by sheriffbot@chromium.org, Sep 14

Cc: ajha@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Pri-2 Pri-3
Owner: hnakashima@chromium.org
Status: Assigned (was: Unconfirmed)
Confirmed that using the link above reproduces the issue. Saving the file locally doesn't reproduce the issue, since it is just falls back on the name of the file when no title is given.

hnakashima@, since you are looking at form saving would you happen to have context on how the name for saving a PDF is determined? 

I think what we need to do here is take the logic that comes up with the filename when saving, that is using the Content-Disposition value, and replicate it when loading for determining the title.
Owner: ----
Status: Available (was: Assigned)
Same problem on Version 70.0.3538.67 on OSX

Sign in to add a comment