Disallow displaying PDFs in sandboxed iframes
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox134 | --- | fixed |
People
(Reporter: d, Assigned: farre)
References
()
Details
(Keywords: parity-chrome, parity-safari, Whiteboard: [pdfjs-integration], [wptsync upstream])
Attachments
(1 file)
Comment 1•4 years ago
|
||
Changing components since this is a PDF Viewer bug.
Updated•3 years ago
|
Comment 2•9 months ago
|
||
This is still an issue per
http://wpt.live/html/semantics/embedded-content/the-iframe-element/sandbox_004.htm
Our behavior here is sort of in the right direction - we don't actually display the PDF, but we do display the PDF-viewer-UI (without any PDF document inside of it). And we fail to display the fallback content, if fallback content is provided.
Comment 3•9 months ago
|
||
wpt.fyi: https://wpt.fyi/results/html/semantics/embedded-content/the-iframe-element/sandbox_004.htm
(Chrome/Safari pass, Firefox fails.)
Comment 4•8 months ago
|
||
The pdf viewer shouldn't be involved in such case so I don't think it's a pdf.js bug but more likely a bug in DOM (Core & HTML ??).
If we don't have any fallback, do we want to display a download button or something like that (like for bug 1655525) ?
:dholbert, wdyt ?
Comment 5•8 months ago
|
||
(In reply to Calixte Denizet (:calixte) from comment #4)
The pdf viewer shouldn't be involved in such case so I don't think it's a pdf.js bug but more likely a bug in DOM (Core & HTML ??).
Agreed (DOM: Core&HTML or perhaps DOM: Security). --> Reclassifying.
If we don't have any fallback, do we want to display a download button or something like that (like for bug 1655525) ?
I'm not super familiar with sandboxed iframes, so I don't have a good intuition of whether that'd be worth doing (or worth not-doing).
FWIW Chrome doesn't seem to provide any fallback in this case, based on some local testing I just did (editing a local copy of the iframe in the WPT that I linked in comment 3, and viewing it through the WPT harness).
Comment 6•8 months ago
|
||
farre, I vaguely recall that you worked on the object
element at some point. Does this look to you like this would be easy to do?
Assignee | ||
Updated•8 months ago
|
Assignee | ||
Comment 8•8 months ago
|
||
Updated•8 months ago
|
Assignee | ||
Comment 9•8 months ago
|
||
Given that my solution is correct, this turned out to be relatively simple. Unfortunately I haven't been able to confirm with spec how this is supposed to be achieved, since the spec change detailed in this bug has long since been re-written to something else.
Assignee | ||
Comment 10•8 months ago
|
||
Comment 11•7 months ago
|
||
Comment 13•7 months ago
|
||
bugherder |
Description
•