<?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>223576</bug_id>
          
          <creation_ts>2021-03-22 08:19:42 -0700</creation_ts>
          <short_desc>Safari needs csp with object-src : &apos;self&apos; to render a PDF</short_desc>
          <delta_ts>2021-03-23 11:57:23 -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>WebCore Misc.</component>
          <version>Safari 14</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>220665</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="alexandre robuchon">alexandre.robuchon</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bfulgham</cc>
    
    <cc>katherine_cheney</cc>
    
    <cc>thorton</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1742232</commentid>
    <comment_count>0</comment_count>
    <who name="alexandre robuchon">alexandre.robuchon</who>
    <bug_when>2021-03-22 08:19:42 -0700</bug_when>
    <thetext>Macos: 10.15.7 
Safari: Version 14.0 (15610.1.28.1.9, 15610)

A pdf served with Content-Security-Policy header to &quot;default-src &apos;none&apos;; style-src &apos;self&apos; &apos;unsafe-inline&apos;;&quot; is not displayed in Safari. It complains about not having &apos;object-src&apos; set to &apos;self&apos;.

This header works fine in Chrome, Edge, Firefox ...


Is it something that will be fixed or is it the intended behavior ?


thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1742396</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-03-22 12:50:56 -0700</bug_when>
    <thetext>This seems unlikely to be intended if it&apos;s different from other browsers. Probably an artifact of having PDF loading implemented using plugin code paths.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1742442</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2021-03-22 13:35:46 -0700</bug_when>
    <thetext>Kate, is this related to https://trac.webkit.org/changeset/271650/webkit?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1742443</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2021-03-22 13:35:54 -0700</bug_when>
    <thetext>(or maybe a dupe of it?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1742467</commentid>
    <comment_count>4</comment_count>
    <who name="alexandre robuchon">alexandre.robuchon</who>
    <bug_when>2021-03-22 14:16:19 -0700</bug_when>
    <thetext>It looks related indeed. Sorry I didn&apos;t find the ticket.


Is the patch in 14.0.3 or do I need to get the nightly to test this ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1742896</commentid>
    <comment_count>5</comment_count>
    <who name="Kate Cheney">katherine_cheney</who>
    <bug_when>2021-03-23 10:27:28 -0700</bug_when>
    <thetext>(In reply to alexandre robuchon from comment #4)
&gt; It looks related indeed. Sorry I didn&apos;t find the ticket.
&gt; 
&gt; 
&gt; Is the patch in 14.0.3 or do I need to get the nightly to test this ?

You should be able to test it using the latest Safari Technology Preview (https://developer.apple.com/safari/technology-preview/).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1742930</commentid>
    <comment_count>6</comment_count>
    <who name="alexandre robuchon">alexandre.robuchon</who>
    <bug_when>2021-03-23 11:54:40 -0700</bug_when>
    <thetext>It works like a charm. No plugin error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1742931</commentid>
    <comment_count>7</comment_count>
    <who name="alexandre robuchon">alexandre.robuchon</who>
    <bug_when>2021-03-23 11:57:23 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 220665 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>