Closed Bug 1264508 Opened 9 years ago Closed 1 year ago

Add helpers for converting ArrayBuffer or BufferSource to nsTArray

Categories

(Core :: DOM: Bindings (WebIDL), task, P3)

task

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: lina, Assigned: peterv)

References

Details

(Whiteboard: btpp-backlog)

Attachments

(1 file)

Bug 1247685 added some helpers for converting ArrayBuffer and BufferSource (OwningArrayBufferViewOrArrayBuffer) to nsTArray. It would be nice to move these helpers into the WebIDL code generator, so that any union containing a buffer or view could be copied into an nsTArray.
Whiteboard: btpp-backlog
Priority: -- → P3
Component: DOM → DOM: Core & HTML

I just found TypedArrayCreator, which goes the other way—from nsTArray to ArrayBuffer. This bug is about going from ArrayBuffer to nsTArray, though.

Type: defect → enhancement
Component: DOM: Core & HTML → DOM: Bindings (WebIDL)
Severity: normal → S3
Assignee: nobody → peterv
Status: NEW → ASSIGNED

This was mostly done in bug 1690111, but I'll use this bug to remove the obsolete Push-specific helpers.

Pushed by pvanderbeken@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/669ac95baa5d Use generic helpers for converting ArrayBuffer or BufferSource to/from nsTArray in Push API code. r=webidl,saschanaz

Backed out for causing (part of commit message)

Please take a look at these Mochitests failure:

Flags: needinfo?(peterv)
Pushed by pvanderbeken@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b42d02ab3f03 Use generic helpers for converting ArrayBuffer or BufferSource to/from nsTArray in Push API code. r=webidl,saschanaz
Pushed by pvanderbeken@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f10daac4c929 Use generic helpers for converting ArrayBuffer or BufferSource to/from nsTArray in Push API code. r=webidl,saschanaz
Pushed by pvanderbeken@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d532fda8cee4 Use generic helpers for converting ArrayBuffer or BufferSource to/from nsTArray in Push API code. r=webidl,saschanaz
Flags: needinfo?(peterv)
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
Type: enhancement → task
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: