<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>272590</bug_id>
          
          <creation_ts>2024-04-12 09:18:59 -0700</creation_ts>
          <short_desc>Cannot download or display certain PDFs due to content security policy</short_desc>
          <delta_ts>2026-03-14 21:12:35 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>PDF</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=264355</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=249872</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>caden</cc>
    
    <cc>dev.xszelu</cc>
    
    <cc>jscott</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2028100</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-04-12 09:18:59 -0700</bug_when>
    <thetext>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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2030233</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-04-22 08:55:40 -0700</bug_when>
    <thetext>&lt;rdar://problem/126863829&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2055591</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-08-27 04:30:57 -0700</bug_when>
    <thetext>It&apos;s probably related to https://bugs.webkit.org/show_bug.cgi?id=264355</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2108485</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2025-04-03 05:47:42 -0700</bug_when>
    <thetext>*** Bug 290935 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2108486</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2025-04-03 05:48:15 -0700</bug_when>
    <thetext>There is another reproducer, depending on Fastmail, in bug #272590.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2149972</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2025-10-10 07:32:07 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #4)
&gt; There is another reproducer, depending on Fastmail, in bug #272590.

Oops, I meant to write: in bug #290935</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2150073</commentid>
    <comment_count>6</comment_count>
    <who name="Caden Mitchell">caden</who>
    <bug_when>2025-10-10 15:06:20 -0700</bug_when>
    <thetext>#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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2150093</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2025-10-10 16:04:14 -0700</bug_when>
    <thetext>*** Bug 300492 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>