Skip to content

Feat/cdn support - #35

Draft
angelo-v wants to merge 9 commits into
uvdsl:mainfrom
angelo-v:feat/cdn-support
Draft

angelo-v wants to merge 9 commits into
uvdsl:mainfrom
angelo-v:feat/cdn-support

Conversation

@angelo-v

@angelo-v angelo-v commented Sep 14, 2026

Copy link
Copy Markdown

ToDOs

  • prevent race condition: simultaneously loading tabs may create multiple workers

The core structure of the HTML page has been extruded by an LLM.

human contributions:
- idea for this sort of test page
- integrity check requirement
- review and clean-up

llm: tensorx/glm-5.3-flash
…assic SharedWorker

this class will be responsible for the integrity check later
Worker creation needs to by async, so that the worker script can be integrity-verified before spawning

Architectural decision and scope of this commit have been decided by its human author. Core implementation extruded with the help of LLM and reworked afterwards.

llm: tensorx/glm-5.3-flash
…ed worker using a blob URL

First draft of the tests had been LLM extruded and used as a starting point

llm: tensorx/glm-5.3-flash
while in a real setting this integrity check is essential to build a full chain to the worker integrity, it is annoying to adjust it with every build while developing
LLM extrusions have been challenged, trimmed down and refined iteratively

llm: tensorx/glm-5.3-flash
the blob URL is therefore stored in localstorage. The original tab does not have to stay alive, since the SharedWorker does not re-fetch the blob URL. It stays alive as an identifier for the existing SharedWorker.

Architectural decision and scope of this commit have been decided by its human author. Tests and implementation extruded by LLM based on these and cleaned up by human author.

llm: tensorx/glm-5.3-flash
… the worker has been connected successfully

this is in preparation for the SecureSharedWorker to be able to notice if the worker is dead so that it can create a new one.

Architectural decision and scope of this commit have been decided by its human author. Test extruded by LLM, reviewed and approved by human author.

llm: tensorx/glm-5.3-flash
After the last tab closed, the worker dies. New tabs need to mint a new blob URL to spin up a new worker instance.

The author has picked and designed the test cases while test implementation and mock setup are mostly LLM extruded & reviewed.

llm: tensorx/glm-5.3-flash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant