-
-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDF file preview #6941
PDF file preview #6941
Conversation
This is great. The fallback is super elegant. I would only be worried if loading PDFs could lead to any new JS security issues. I've read somewhere that PDFs have optional JS support, which is pretty crazy. But I'm not aware if this could be exploited or not. Maybe @lukasbestle has some additional thoughts? |
mdn has a section on security concerns with frames, but uses object as example for PDFs without any further security mentions: https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Structuring_content/General_embedding_technologies#the_embed_and_object_elements |
PDFs do have JS support, but I would assume that when embedding a PDF in |
Actually not a very good comparison as SVGs in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just added a subtle border to separate the preview a bit better. But I'm super happy with the rest. It's nice to have this in the core.
Description
I think this could be a neat addition for the core. With fallback in case inline PDF viewing isn't supported.
Or if not core, we could release it as small plugin.
Changelog
Feature
Ready?
For review team