Status: Unconfirmed
Owner: ----
Labels: Pri-2 Via-Wizard Type-Compat OS-Mac
New issue 413851 by
dev.akh...@gmail.com: Sandbox breaks PDF rendering
https://code.google.com/p/chromium/issues/detail?id=413851
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36
Example URL:
http://htmlpad.org/csp-pdf-iframe-sandbox/
Steps to reproduce the problem:
Go to
http://htmlpad.org/csp-pdf-iframe-sandbox/
What is the expected behavior?
Pdf renders in frame
What went wrong?
PDf doesn't render. Removing sandbox attribute allows rendering.
Does it occur on multiple sites: No
Is it a problem with a plugin? Yes PDF Reader
Did this work before? N/A
Does this work in other browsers? Yes
Chrome version: 37.0.2062.120 Channel: stable
OS Version: OS X 10.9.4
Flash Version: Shockwave Flash 15.0 r0
This is because Chrome creates a HTML document with a plugin inside, and
then the sandbox blocks the plugin. But the creation of the HTML document
is a Chrome internal implementation detail and abstractly, the developer is
only pointing an iframe to the PDf.
A similar problem also exists for the CSP sandbox directive. This is
annoying since it would be nice to send PDFs without any privileges (or in
general, sandbox all static content so that any content-sniffing issues
can't cause code execution)
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings