Closed Bug 939688 Opened 11 years ago Closed 2 years ago

Make sure the local transport actually freezes the packets

Categories

(DevTools :: Framework, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: past, Unassigned)

References

Details

Attachments

(1 file, 5 obsolete files)

Attached patch WIP v1 (obsolete) — Splinter Review
Jim had told me a long time ago that LDT_deepFreeze was broken and doesn't actually freeze the object's properties. It turns out that the broken behavior is something some actors started to rely on, so fixing it is more work than I expected. I am attaching my current WIP which passes all xpcshell tests, but fails many chrome mochitests. Haven't tried browser mochitests yet.
Attached patch WIP v2 (obsolete) — Splinter Review
Fixed most inspector tests, more to come still.
Attachment #8333719 - Attachment is obsolete: true
Attached patch WIP v3 (obsolete) — Splinter Review
More to come.
Attachment #8341844 - Attachment is obsolete: true
Attached patch WIP v4 (obsolete) — Splinter Review
More test fixes, but I've stumbled across bug 814892, which blocks further progress, since the App Manager uses a proxy in its DeviceStore. There are a few more weird test timeouts without errors that I haven't investigated yet, but I'm postponing this work until bug 814892 is fixed.
Attachment #8343977 - Attachment is obsolete: true
Depends on: 814892
Bug 814892 has since been fixed. Panos, I assume you are very busy with your current projects right now, but do you have any plans to return to this bug in the future?
I plan to revisit this, but it's not high on my TODO list. e10s will make this even less important.
Attached patch Patch v5 (obsolete) — Splinter Review
Rebased, tested locally and pushed to try:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a34e5c834268
Attachment #8346473 - Attachment is obsolete: true
Attached patch Patch v6Splinter Review
Fixed some of the test failures, but I don't really have more time right now for this game of whack-a-mole.
Attachment #8670992 - Attachment is obsolete: true
Assignee: past → nobody
Status: ASSIGNED → NEW
Product: Firefox → DevTools
Alex, do you think this is still relevant?
Flags: needinfo?(poirot.alex)
Component: Debugger → Framework
Priority: P2 → P5

The deep freeze code added in bug 790202 might still not correctly freeze all nested properties,
but as this only applies to parent process to parent process packet it is quite limited.

I'm not sure it is worth the efforts as most packets are now going through JSWindowActor.

https://searchfox.org/mozilla-central/rev/fa69d8b248e6c1df670aa6b019e30ec37e6672be/devtools/shared/transport/local-transport.js#184-203

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(poirot.alex)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: