Repository navigation
Fix: Handling Blob image in updateNodeStyles - #88
Closed
nicolas-hoarau wants to merge 1 commit into
Closed
nicolas-hoarau wants to merge 1 commit into
nicolas-hoarau wants to merge 1 commit into
Conversation
Contributor
|
Thanks for this! While reviewing it, I found a few gaps and opened #101 to cover them. It builds on the same idea (an object URL per Blob):
#101 also adds tests for these cases. Could you check whether it covers your use case? If it does, we can close this one in favor of it. |
chiefcll
added a commit
that referenced
this pull request
Dec 1, 2026
…#101) `<view src={blob}>` did nothing: ElementNode's src setter only passed strings to the renderer node (and turned the view transparent otherwise). It now passes a Blob too; the WebGL renderer already loads one as ImageTexture does. The DOM renderer shows a Blob through an object URL the node owns: - one URL per Blob, reused while that Blob stays the source - a URL is revoked once nothing uses it: when the source changes, after the <img> has moved off it (out of bounds it keeps the old one until it is back in bounds), and when the node is destroyed - a destroyed node makes no new URL, so a late write cannot leak one - a SubTexture whose ImageTexture src is a Blob shows it, instead of throwing in applyPendingImageSrc (pendingSrc.startsWith on a Blob) - blob: URLs load without crossorigin, as data: URIs do (old WebKit) Supersedes #88. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.