Closed Bug 1734166 Opened 4 years ago Closed 4 years ago

Investigate using structuredClone for local transport instead of freezing packets

Categories

(DevTools :: Framework, task)

task

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

In local transport, we freeze object because we don't want to serialize the packets for perf reasons, but we don't want to risk modifying server objects from the client.

https://searchfox.org/mozilla-central/rev/9bc5dcea99c59dc18eae0de7064131aa20cfbb66/devtools/shared/transport/local-transport.js#53

We might want to replace deepFreeze with structuredClone so we don't share object instances between client and server.
We should check if this does have any performance impact.

Depends on: 1734320
You need to log in before you can comment on or make changes to this bug.