New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 707538 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

Long filename or title kills "Save as PDF" dialog

Reported by dawpas2...@gmail.com, Apr 1 2017

Issue description

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

Steps to reproduce the problem:
1. Open "longTitle.html" or a page with a very long title.
2. Print.
3. Save as PDF.
4. Save.

This also affects filename generation with a blank title, which is another way to reproduce the bug.

To make a filename longer for a page with a blank title, add a period to a query string. Weirdly, the presence of a period changes the filename by including the query string.

Notice the difference between a missing period and a period:

/blankTitle.html?111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111a
Effect: Filename generator ignores query string.

/blankTitle.html?111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111.a
Effect: Filename generator includes long query string, which reproduces the bug.

What is the expected behavior?
"Save as" dialog should appear.

What went wrong?
"Save as" dialog does not appear. "Save" button does not work.

Did this work before? N/A 

Chrome version: 57.0.2987.98  Channel: n/a
OS Version: 10.0
Flash Version: Shockwave Flash 25.0 r0
 
longTitle.html
880 bytes View Download
blankTitle.html
160 bytes View Download
Labels: Needs-Triage-M57
Cc: ranjitkan@chromium.org
Components: -UI UI>Browser>PrintPreview
Labels: -OS-Windows -Needs-Triage-M57 M-59 OS-All
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on Windows 10, MAC 10.12.3, Ubuntu 14.04. Issue is a non regression as seen from M24 version of chrome 24.0.1300.0.

Untriaged it so that it gets addressed.

Thanks.!
On Windows the failure is happening in GetOpenFileName - the default filename for these pages is longer than the OS limit. Likely the same issue on Linux/Mac. We need to truncate filenames longer than 255 characters.
RE: comment 2 - cannot reproduce this with the longTitle.html and blankTitle.html files on Linux (Ubuntu 14.04). Did you use a different test case?
Labels: Needs-Feedback
Tested on Canary (60.0.3086.0) on Windows 10. The silent failure is fixed; the system save as dialog now appears and prompts the user to change the name if it is too long. Since we were never able to reproduce this on Linux, not sure if it is fixed there or not. Is this still an issue on any of the platforms?
Labels: -M-59
Owner: rbpotter@chromium.org
Status: Started (was: Untriaged)
Labels: -Needs-Feedback
Status: Fixed (was: Started)
Let's call it done. If there are still problems with this on Linux/Mac, please say so.

Sign in to add a comment