From 58b2c32afb03fca994e33757f5ba1ecb060e5406 Mon Sep 17 00:00:00 2001 From: "sentry[bot]" <39604003+sentry[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 18:16:52 +0000 Subject: [PATCH] fix(replay): Add MIME type to worker blob URL for Safari compatibility --- packages/replay-worker/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/replay-worker/src/index.ts b/packages/replay-worker/src/index.ts index f038e687c778..51c772295c24 100644 --- a/packages/replay-worker/src/index.ts +++ b/packages/replay-worker/src/index.ts @@ -4,7 +4,7 @@ import workerString from './worker'; * Get the URL for a web worker. */ export function getWorkerURL(): string { - // Safari (particularly on iOS) validates the MIME type of a Blob before it + const workerBlob = new Blob([workerString], { type: 'text/javascript' }); // will execute it as a classic Worker script. A Blob created without an // explicit `type` defaults to an empty string, which WebKit may reject, // firing a bare `error` event with no message. Blink/Gecko are lenient here,