WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
329354
A dedicated worker from a blob URL that is revoked right away gets a new opaque origin
https://bugs.webkit.org/show_bug.cgi?id=329354
Summary
A dedicated worker from a blob URL that is revoked right away gets a new opaq...
birk.skyum
Reported
2026-10-28 16:32:38 PDT
In a document with an opaque origin, such as an iframe with sandbox="allow-scripts", a dedicated worker started from a blob: URL that is revoked right after new Worker() can't import the document's other blob: URLs or read a Blob, not even one it makes itself: const url = URL.createObjectURL(new Blob(["new Blob(['OK']).text().then(postMessage, e => postMessage(e.name))"], {type: "text/javascript"})); const worker = new Worker(url); URL.revokeObjectURL(url); worker.onmessage = e => 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'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
Attachments
Add attachment
proposed patch, testcase, etc.
birk.skyum
Comment 1
2026-10-28 16:34:26 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/78722
Radar WebKit Bug Importer
Comment 2
2026-11-04 15:33:14 PST
<
rdar://problem/191852940
>
EWS
Comment 3
2026-11-05 05:47:03 PST
Committed
325843@main
(36ef286a8b44): <
https://commits.webkit.org/325843@main
> Reviewed commits have been landed. Closing PR #78722 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug