Closed Bug 1778269 Opened 2 years ago Closed 2 years ago

Preview support for FormData objects

Categories

(DevTools :: Object Inspector, enhancement)

enhancement

Tracking

(firefox106 fixed)

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: nchevobbe, Assigned: colin.cazabet, Mentored)

References

Details

Attachments

(1 file)

In the same vein of what we'll do for URLSearchParams in Bug 1777587, it will be nice to be able to inspect FormData object too

Hello Nicolas, I can do this one, it's pretty similar to the one I've done before

Thanks a lot Colin, I'm assigning the bug to you.
Unlike Headers, in this one we want to have the indexes, like in URLSearchParams, as we get multiple entries when appending the same key:

x = new FormData();
x.append("a", 1)
x.append("a", 2);
console.log(...x.entries()) // [ "a", "1" ], [ "a", "2" ];
x;

so in such case we should have

▼ FormData { a → "1", a → "2" }
|  ▼ <entries>
|  |  0: a → "1"
|  |  1: a → "2"
Assignee: nobody → colin.cazabet
Mentor: nchevobbe
Blocks: 1786738
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a57903f4543d
[devtools] Preview support for FormData objects r=nchevobbe
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: