Closed Bug 1616301 Opened 4 years ago Closed 4 years ago

context switching should refer to target instead of thread

Categories

(DevTools :: Framework, task, P1)

task

Tracking

(Fission Milestone:M6a, firefox76 fixed)

RESOLVED FIXED
Firefox 76
Fission Milestone M6a
Tracking Status
firefox76 --- fixed

People

(Reporter: jlast, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

(Whiteboard: dt-fission-m2-mvp)

Attachments

(2 files)

[alex] In initial context selector patch, most of the patch mentions “thread” whereas this is rather a “target”.

registerThread is a good example (link)
function registerThread(targetFront) {
return async function(dispatch) {
const threadFront = await targetFront.getFront("thread");
const thread = {
actor: threadFront.actor,
url: targetFront.url,
type: getTargetType(targetFront),
name: targetFront.name,
serviceWorkerStatus: targetFront.debuggerServiceWorkerStatus,
// NOTE: target is used because when the target is destroyed
// its ID and associated thread front are removed.
_targetFront: targetFront,
};

Isn’t the context selector more about targets than threads?
It is often better to work with a target as you can derive everything from it. While it is harder to get the console front, if you only have the thread front.

Priority: -- → P2
Whiteboard: dt-fission-m2-mvp
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Priority: P2 → P1

Tracking Fission DevTools bugs for Fission Nightly (M6) milestone

Fission Milestone: --- → M6

This is more consistent with the registerTarget action we
have

Depends on D68760

Tentatively moving P1 Fission M6 bugs to M6a.

Fission Milestone: M6 → M6a
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c54971ad0117
Handle targets in toolbox store instead of threads. r=jlast.
https://hg.mozilla.org/integration/autoland/rev/c3c65ed42418
Rename clearTarget into unregisterTarget. r=jlast.
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 76
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: