<?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>302558</bug_id>
          
          <creation_ts>2025-11-14 16:04:46 -0800</creation_ts>
          <short_desc>Allow top-level blob URL documents to fetch themselves</short_desc>
          <delta_ts>2025-11-21 16:05:11 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Page Loading</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrew Williams">awillia</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annevk</cc>
    
    <cc>beidson</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2158938</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Williams">awillia</who>
    <bug_when>2025-11-14 16:04:46 -0800</bug_when>
    <thetext>As part of https://github.com/w3c/FileAPI/issues/210 we are planning to update the specs related to blob URL partitioning such that a top-level blob URL document should be able to fetch itself, even when the blob URL was created in a different partition. In Chrome this was needed to prevent breakage when navigating to a blob URL with a media mime type. In that case a document is created that uses the blob URL as the src of a media element so that media controls are present when playing the media. The fetch from that media element was being blocked if the blob URL was created from a third-party context (since the media src fetch would be coming from a first-party context). Chrome&apos;s behavior in this case and what we plan to spec is the more general behavior of allowing top-level blob URL documents to fetch their URL.

We don&apos;t expect this new behavior to have much of an impact on cross-partition leakage. The blob URL contents are immutable, so it can&apos;t be used as a persistent channel for the third-party context to pass information to the first-party page (which isn&apos;t otherwise possible since the opener is severed for cross-top-level-origin navigations as is implemented in Safari IIUC). The third-party context can revoke the blob URL which would be observable to the first-party context, but that can only occur once and in general this doesn&apos;t seem too helpful since any data the third-party context wanted to pass initially at least it could have just put in the blob used for the opened document. Also, the first-party context still shouldn&apos;t be able to revoke its blob URL, so it can&apos;t use that to affect state in the third-party partition.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2160750</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-11-21 16:05:11 -0800</bug_when>
    <thetext>&lt;rdar://problem/165239246&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>