Bug 272590
| Summary: | Cannot download or display certain PDFs due to content security policy | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Catanzaro <mcatanzaro> |
| Component: | Assignee: | Nobody <webkit-unassigned> | |
| Status: | NEW | ||
| Severity: | Normal | CC: | bugs-noreply, caden, dev.xszelu, mcatanzaro, thorton, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| See Also: |
https://bugs.webkit.org/show_bug.cgi?id=264355 https://bugs.webkit.org/show_bug.cgi?id=249872 |
||
Michael Catanzaro
This is a follow up to bug #249872. Opening https://dor.mo.gov/forms/MO-1040%20Instructions_2022.pdf and attempt to download it using the PDF.js UI. It won't work:
[Error] Refused to load blob:webkit-pdfjs-viewer://pdfjs/39176f55-4f67-4515-9733-dc0f6d764506 because it does not appear in the frame-src directive of the Content Security Policy.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/126863829>
Michael Catanzaro
It's probably related to https://bugs.webkit.org/show_bug.cgi?id=264355
Michael Catanzaro
*** Bug 290935 has been marked as a duplicate of this bug. ***
Michael Catanzaro
There is another reproducer, depending on Fastmail, in bug #272590.
Michael Catanzaro
(In reply to Michael Catanzaro from comment #4)
> There is another reproducer, depending on Fastmail, in bug #272590.
Oops, I meant to write: in bug #290935
Caden Mitchell
#300492 is a duplicate of this bug, I believe. You cannot preview PDFs or DOCX in WebKitGTK because of this security policy violation. Breaks document previews in Proton Mail.
Michael Catanzaro
*** Bug 300492 has been marked as a duplicate of this bug. ***