Repository navigation
Conversation
Collaborator
|
Review requested:
|
Member
Author
|
Also supersedes #66772 |
Convert constructor arguments in Web IDL order before processing blob parts, including inherited dictionary members and File.lastModified's long long conversion. Read buffer slots and copy bytes without invoking user getters, slice methods, or species constructors. Treat detached parts as empty and track Blob brands without invoking user getters or accepting proxies. Keep rejecting bare SharedArrayBuffers and shared-memory views for browser compatibility pending resolution of the union conversion rules. Refs: whatwg/webidl#1491 Signed-off-by: Filip Skokan <panva.ip@gmail.com> Assisted-by: Codex
Signed-off-by: Filip Skokan <panva.ip@gmail.com> Assisted-by: Codex
panva
force-pushed
the
fix-blob-detached-buffer
branch
from
October 15, 2026 20:08
7d0d4ec to
880a300
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #66776 +/- ##
==========================================
- Coverage 90.49% 90.49% -0.01%
==========================================
Files 797 797
Lines 277598 277639 +41
Branches 53336 53333 -3
==========================================
+ Hits 251220 251246 +26
- Misses 16790 16794 +4
- Partials 9588 9599 +11
🚀 New features to boost your workflow:
|
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.
Convert Blob and File constructor arguments before processing blob parts, preserving Web IDL argument and dictionary conversion order. Apply
long longconversion toFile.lastModifiedand reject an explicitly undefinedfileBitsargument.Copy bytes using internal buffer slots without invoking user getters, slice methods, or species constructors. Treat detached parts as empty and check Blob brands without invoking user getters or accepting proxy wrappers.
Keep rejecting bare SharedArrayBuffers and shared-memory views for browser compatibility. String conversion for bare SharedArrayBuffers remains an unresolved specification discrepancy: whatwg/webidl#1491.
I'd treat Web API fixes as patches but since the impact of this is unclear to me -> semver-majorPRs that contain breaking changes and should be released in the next major version.