New issue
Advanced search Search tips

Issue 813654 link

Starred by 2 users

Issue metadata

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



Sign in to add a comment

history.replaceState called from `resize` event causes print preview to crash

Reported by chrisjba...@gmail.com, Feb 19 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

Example URL:

Steps to reproduce the problem:
1. Try printing the attached file

What is the expected behavior?
I should see the print preview dialog and be able to print.

What went wrong?
The print preview dialog immediately closes and there is no way to print the document.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 63.0.3239.132  Channel: stable
OS Version: OS X 10.12.6
Flash Version:
 
PrintPreviewCrash.html
342 bytes View Download
Labels: Needs-Triage-M63
Cc: vamshi.kommuri@chromium.org
Components: UI>Browser>PrintPreview
Labels: Triaged-ET M-66 FoundIn-66 Target-66 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
Thanks for filing the issue!

Able to reproduce the issue on reported chrome version 63.0.3239.132 and on the latest canary 65.0.3350.0 using Windows 10, Ubuntu 14.04 and Mac 10.13.01. As the issue is seen from M60(60.0.3072.0) considering it as Non-Regression and marking it as Untriaged.
Components: -Blink
Labels: -M-66 -Target-66
Owner: rbpotter@chromium.org
Print Preview currently closes itself on navigation in this case, just as it would if one manually navigates while Print Preview is open. There is no crash.
While it does close itself, to the user it appears as if it is a crash as they didn't close it and it never finished opening or gave any indication of why it was closing. What is more, I'm not aware of any way for the user to navigate while in Print Preview, so there really is no precedent for the Print Preview window closing in the case of navigation. It still remains that the way Chrome is behaving prevents printing in a way that is outside of user control or even user notification.
It is definitely possible for the user to navigate while in Print Preview using any of the following methods:
1) Type a new address or search query in the omnibox and press enter
2) Alt + left/right arrow to go forward/back
3) Manually click forward/back buttons
4) Click refresh to refresh the page
Any of these will close print preview.

The reason for closing on navigation in general is that it could be confusing for the page that is in the tab behind the preview to change while print preview is still open showing a preview of the old content. We are looking at whether there is a better way to determine if a navigation has actually changed the page to prevent these types of silent closures.
Status: Assigned (was: Untriaged)
This bug has an owner, thus, it's been triaged. Changing status to "assigned".

Sign in to add a comment