<?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>329354</bug_id>
          
          <creation_ts>2026-10-28 16:32:38 -0700</creation_ts>
          <short_desc>A dedicated worker from a blob URL that is revoked right away gets a new opaque origin</short_desc>
          <delta_ts>2026-11-05 05:47:06 -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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=258443</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>birk.skyum</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2270987</commentid>
    <comment_count>0</comment_count>
    <who name="">birk.skyum</who>
    <bug_when>2026-10-28 16:32:38 -0700</bug_when>
    <thetext>In a document with an opaque origin, such as an iframe with sandbox=&quot;allow-scripts&quot;, a dedicated worker started from a blob: URL that is revoked right after new Worker() can&apos;t import the document&apos;s other blob: URLs or read a Blob, not even one it makes itself:

const url = URL.createObjectURL(new Blob([&quot;new Blob([&apos;OK&apos;]).text().then(postMessage, e =&gt; postMessage(e.name))&quot;], {type: &quot;text/javascript&quot;}));
const worker = new Worker(url);
URL.revokeObjectURL(url);
worker.onmessage = e =&gt; console.log(e.data); // NotReadableError, expected OK

Without the revoke it works. The worker takes its origin from the blob URL when it starts, and a revoked URL is no longer in ThreadableBlobRegistry&apos;s origin map, so the worker gets a new opaque origin. Firefox passes. Related to bug 258443, which also covers workers from data: URLs and file:// pages. This hits MapLibre GL JS maps in sandboxed iframes: https://github.com/maplibre/maplibre-gl-js/issues/8909</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2270988</commentid>
    <comment_count>1</comment_count>
    <who name="">birk.skyum</who>
    <bug_when>2026-10-28 16:34:26 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/78722</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2274571</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-11-04 15:33:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/191852940&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2274944</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-11-05 05:47:03 -0800</bug_when>
    <thetext>Committed 325843@main (36ef286a8b44): &lt;https://commits.webkit.org/325843@main&gt;

Reviewed commits have been landed. Closing PR #78722 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>