Skip to content

Sandboxed iframe in the ViewHandler not rendering PDFs #2404

Closed
@hsbarbosa

Description

@hsbarbosa

Hey,
The new ViewHandler in v5.0 doesn't seem to be rendering pdfs either with Chrome or Safari.
Chrome 57.0.2987.133
Safari 10.1 (12603.1.30.0.34)

Actually it seems to be a security issue that was recently corrected but now they are not allowing sandboxed iframes to execute scripts. Apparently it's only when the pdf is loaded in a different tab.
Removing the sandbox directive from the iframe makes it render properly (but the iframe is sandboxed for a reason, I guess).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions