<?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>225865</bug_id>
          
          <creation_ts>2021-05-17 04:30:57 -0700</creation_ts>
          <short_desc>CSP sandbox policy header disables built-in media player</short_desc>
          <delta_ts>2023-08-27 23:36:47 -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>Media</component>
          <version>Safari 14</version>
          <rep_platform>Other</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>223422</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=223422</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=191782</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="fnowak@atlassian.com">fnowak</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annevk</cc>
    
    <cc>bfulgham</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>hi</cc>
    
    <cc>jer.noble</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1760722</commentid>
    <comment_count>0</comment_count>
    <who name="fnowak@atlassian.com">fnowak</who>
    <bug_when>2021-05-17 04:30:57 -0700</bug_when>
    <thetext>We have encountered problems with introducing &quot;Content-Security-Policy: sandbox&quot; header to some resources.
The issue is described here: https://jira.atlassian.com/browse/JRASERVER-72275.

Steps to reproduce:
1. Request for audio/video file and get a response with &quot;Content-Security-Policy: sandbox&quot; HTTP header set.

Actual results:
1. Console shows: &quot;Blocked script execution in &apos;http://localhost:8080/secure/attachment/10000/100MBVideo.mp4&apos; because the document&apos;s frame is sandboxed and the &apos;allow-scripts&apos; permission is not set.&quot;
2. The video does not play.

Expected results:
1. Video plays without issues.

Workaround:
1. Set &quot;Content-Security-Policy: sandbox allow-scripts&quot; header for affected browsers.


The same issue occurs both in OS X and iOS versions of Safari, as well as iOS version of Chrome, thus we think that the problem lies within WebKit itself.
Firefox on OS X works without any issues. However, Chrome for OS X requires `allow-same-origin` instead of `allow-scripts` to function properly.

Could you please confirm if this is a bug or desired behaviour?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1763093</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-05-24 04:31:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/78394877&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973863</commentid>
    <comment_count>2</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-08-27 23:36:47 -0700</bug_when>
    <thetext>It&apos;s not desired behavior. It appears this was fixed by bug 223422. Please comment/reopen if that&apos;s not the case.

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

    </bug>

</bugzilla>