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

Issue 700211 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Chrome print preview does not work

Project Member Reported by arthurhsu@chromium.org, Mar 10 2017

Issue description

Chrome Version:
Google Chrome	56.0.2924.87 (Official Build) (64-bit)
Revision	0e9a9a6f3676ae439b78cd9b3f62b4193c3ac7d5-refs/branch-heads/2924@{#895}
OS	Linux 
JavaScript	V8 5.6.326.50
Flash	24.0.0.221 


What steps will reproduce the problem?
Ctrl-P

What is the expected result? Shows print preview

What happens instead? Nothing shown

JavaScript console has a ton of error

/deep/ combinator is deprecated. See https://www.chromestatus.com/features/6750456638341120 for more details.
pdf_preview.html:6 Refused to load the script 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/elements/viewer-error-screen/viewer-error-screen.html' because it violates the following Content Security Policy directive: "script-src chrome://resources 'self' 'unsafe-eval'".

pdf_preview.html:7 Refused to load the script 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/elements/viewer-page-indicator/viewer-page-indicator.html' because it violates the following Content Security Policy directive: "script-src chrome://resources 'self' 'unsafe-eval'".

pdf_preview.html:8 Refused to load the script 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/elements/viewer-page-selector/viewer-page-selector.html' because it violates the following Content Security Policy directive: "script-src chrome://resources 'self' 'unsafe-eval'".

pdf_preview.html:9 Refused to load the script 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/elements/viewer-password-screen/viewer-password-screen.html' because it violates the following Content Security Policy directive: "script-src chrome://resources 'self' 'unsafe-eval'".

pdf_preview.html:10 Refused to load the script 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/elements/viewer-pdf-toolbar/viewer-pdf-toolbar.html' because it violates the following Content Security Policy directive: "script-src chrome://resources 'self' 'unsafe-eval'".

pdf_preview.html:11 Refused to load the script 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/elements/viewer-zoom-toolbar/viewer-zoom-toolbar.html' because it violates the following Content Security Policy directive: "script-src chrome://resources 'self' 'unsafe-eval'".

pdf_preview.html:1 Refused to load the script 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/toolbar_manager.js' because it violates the following Content Security Policy directive: "script-src chrome://resources 'self' 'unsafe-eval'".

pdf_preview.html:1 Refused to load the script 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/viewport.js' because it violates the following Content Security Policy directive: "script-src chrome://resources 'self' 'unsafe-eval'".

pdf_preview.html:1 Refused to load the script 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/open_pdf_params_parser.js' because it violates the following Content Security Policy directive: "script-src chrome://resources 'self' 'unsafe-eval'".

pdf_preview.html:1 Refused to load the script 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/navigator.js' because it violates the following Content Security Policy directive: "script-src chrome://resources 'self' 'unsafe-eval'".

pdf_preview.html:1 Refused to load the script 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/viewport_scroller.js' because it violates the following Content Security Policy directive: "script-src chrome://resources 'self' 'unsafe-eval'".

pdf_preview.html:1 Refused to load the script 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/zoom_manager.js' because it violates the following Content Security Policy directive: "script-src chrome://resources 'self' 'unsafe-eval'".

pdf_preview.html:1 Refused to load the script 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/gesture_detector.js' because it violates the following Content Security Policy directive: "script-src chrome://resources 'self' 'unsafe-eval'".

pdf_preview.html:1 Refused to load the script 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/pdf_scripting_api.js' because it violates the following Content Security Policy directive: "script-src chrome://resources 'self' 'unsafe-eval'".

pdf_preview.html:1 Refused to load the script 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/browser_api.js' because it violates the following Content Security Policy directive: "script-src chrome://resources 'self' 'unsafe-eval'".

pdf_preview.html:1 Refused to load the script 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/pdf.js' because it violates the following Content Security Policy directive: "script-src chrome://resources 'self' 'unsafe-eval'".

pdf_preview.html:1 Refused to load the script 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/main.js' because it violates the following Content Security Policy directive: "script-src chrome://resources 'self' 'unsafe-eval'".

 

Comment 1 by dpa...@chromium.org, Mar 10 2017

Cc: rbpotter@chromium.org
Components: UI>Browser>PrintPreview
Labels: -Pri-3 OS-Chrome OS-Linux Pri-2
I have actually seen similar errors in the past. Is this a known issue?
Have not seen this before and don't think we have another open bug for it. Are there any specific pages that trigger this issue or does it happen on every webpage? Since pdf_preview.html just redirects to pdf/index.html, which is part of the PDF viewer, do these errors ever come up when just loading PDFs (not running print preview)?
Labels: -OS-Linux -Pri-2 -OS-Chrome Pri-3
No specific page. Chrome simply not rendering the print preview.
I did not try normal PDF pages.

This symptom goes away after I killall -9 chrome and restart.
I had this problem too, on Windows. Updating to version 57 seems to have fixed it.
Cc: mkwst@chromium.org
+mkwst if the CSP errors sound familiar. Not sure what's causing it but maybe Chrome 57+ won't have the same problem.
Has the bug resurfaced? Not sure what we can do about it if it's not reproducible.
I'm pretty sure it'd be reproducible by loading up the build of Chrome this issue was reported under (v56), but it was fixed in a later build, and has not yet regressed (at least, not for me).
Status: WontFix (was: Untriaged)
Thanks for letting us know. We'll close this for now.

Sign in to add a comment