URL.createObjectURL + BlobRegistry #19

Closed
opened 2026-06-17 14:01:50 +00:00 by Artur · 1 comment
Owner

Goal

Implement URL.createObjectURL(blob) and URL.revokeObjectURL(url).

What to Build

  1. src/network/blob-registry.ts — BlobRegistry class
  2. Hook into URL global in createIsolatedContext

Tests (110%)

  • createObjectURL returns blob: URL
  • createObjectURL returns unique URLs
  • revokeObjectURL removes the blob
  • multiple blobs have different URLs
  • Blob URL format is blob://origin/id
  • URL.createObjectURL with MediaSource works
  • revokeObjectURL on missing URL does nothing

Definition of Done

  • BlobRegistry with createObjectURL/revokeObjectURL
  • Hooked into URL global in isolated context
  • Tests pass with 100% line coverage
## Goal Implement URL.createObjectURL(blob) and URL.revokeObjectURL(url). ## What to Build 1. `src/network/blob-registry.ts` — BlobRegistry class 2. Hook into URL global in createIsolatedContext ## Tests (110%) - createObjectURL returns blob: URL - createObjectURL returns unique URLs - revokeObjectURL removes the blob - multiple blobs have different URLs - Blob URL format is blob://origin/id - URL.createObjectURL with MediaSource works - revokeObjectURL on missing URL does nothing ## Definition of Done - [ ] BlobRegistry with createObjectURL/revokeObjectURL - [ ] Hooked into URL global in isolated context - [ ] Tests pass with 100% line coverage
Author
Owner

URL.createObjectURL + BlobRegistry. Implementiert in src/fakes/. Tests: blob-registry.test.ts.

URL.createObjectURL + BlobRegistry. ✅ Implementiert in src/fakes/. Tests: blob-registry.test.ts.
Artur closed this issue 2026-06-18 06:28:05 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
glow-all/true-headless-browser#19
No description provided.