Closed Bug 2022010 Opened 19 days ago Closed 7 days ago

Allow accepting large typed arrays in DOM bindings

Categories

(Core :: DOM: Bindings (WebIDL), defect)

defect

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: jrmuizel, Assigned: jrmuizel)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file, 1 obsolete file)

This is most useful for using WebGL functions with large WASM heaps.

See bug 1838218 comment 4 and following for context

Blocks: 1838218

jrmuizel: Could you set the severity field? Sounds like S3 or S4, but I'm not sure the API usage scenarios in the wild.

Flags: needinfo?(jmuizelaar)
Severity: -- → S2
Flags: needinfo?(jmuizelaar)
Severity: S2 → S3

I have a WIP for this

Attached patch WIP patch (obsolete) — Splinter Review
Assignee: nobody → jmuizelaar
Attachment #9554406 - Attachment description: Phabricator is down so here's a raw patch → WIP patch
Attachment #9554406 - Attachment is obsolete: true

Add [AllowLarge] to the WebIDL bindings infrastructure, following the
existing [AllowShared] pattern. When present on a buffer source type,
the bindings skip the >2GB size rejection, allowing TypedArray views
backed by large WASM heaps to be passed to DOM APIs.

Attachment #9554416 - Attachment description: Bug 2022010 - Add [AllowLarge] WebIDL extended attribute for large TypedArrays → Bug 2022010 - Add [AllowLarge] WebIDL extended attribute for large TypedArrays.
Status: NEW → RESOLVED
Closed: 7 days ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
Blocks: 2026349
QA Whiteboard: [qa-triage-done-c151/b150]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: