Open Bug 1525971 Opened 6 years ago Updated 2 years ago

Use protocol pools to manage fronts on target fronts

Categories

(DevTools :: Framework, enhancement, P3)

enhancement

Tracking

(Fission Milestone:Future)

Fission Milestone Future

People

(Reporter: yulia, Unassigned)

References

(Blocks 3 open bugs, )

Details

(Whiteboard: dt-fission-future)

We are currently managing and destroying fronts manually: https://searchfox.org/mozilla-central/source/devtools/shared/fronts/targets/target-mixin.js#475-478

We should clean this up so that we can rely on protocol.js to do this for us. Then we can remove our custom front destruction, and rely on the destroy code path from debugger-client
https://searchfox.org/mozilla-central/source/devtools/shared/client/debugger-client.js#916-918

Whiteboard: dt-fission → dt-fission, dt-fission-framework
Whiteboard: dt-fission, dt-fission-framework → dt-fission
Priority: P2 → P3
Whiteboard: dt-fission → dt-fission-reserve

We are manually registering fronts into a custom Set over here:
https://searchfox.org/mozilla-central/rev/d061ba55ac76f41129618d638f4ef674303ec103/devtools/shared/fronts/targets/target-mixin.js#200-213
Instead of doing this.manage(front).
Later on, we are destroying fronts manually from here:
https://searchfox.org/mozilla-central/rev/d061ba55ac76f41129618d638f4ef674303ec103/devtools/shared/fronts/targets/target-mixin.js#438-445

Whereas we could depend on Pool and protocol.js to automatically destroy all children fronts when the TargetFront is destroyed from here:
https://searchfox.org/mozilla-central/rev/d061ba55ac76f41129618d638f4ef674303ec103/devtools/shared/fronts/targets/target-mixin.js#474-475

But this might be better time spent working on bug 1529741, which would drastically change the implementation of getFront and allow to do a massive cleanup on the server side!

Tracking Fission DevTools bugs for Fission Nightly (M6)

Fission Milestone: --- → M6
Assignee: ystartsev → nobody

dt-fission-reserve bugs do not need to block Fission Nightly (M6).

Fission Milestone: M6 → ---

Tracking dt-fission-reserve bugs for Fission MVP until we know whether they really need to block Fission or not.

Fission Milestone: --- → MVP

Moving old "dt-fission-reserve" bugs to "dt-fission-future" because they don't block Fission MVP.

Fission Milestone: MVP → Future
Whiteboard: dt-fission-reserve → dt-fission-future
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.