Closed Bug 1633727 Opened 4 years ago Closed 4 years ago

Always attach thread front from toolbox code

Categories

(DevTools :: Debugger, enhancement, P2)

enhancement

Tracking

(Fission Milestone:M6c, firefox81 fixed)

RESOLVED FIXED
81 Branch
Fission Milestone M6c
Tracking Status
firefox81 --- fixed

People

(Reporter: ochameau, Assigned: jdescottes)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

(Whiteboard: dt-fission-m2-mvp)

Attachments

(3 files, 1 obsolete file)

We should probably start moving this code to the toolbox, here.
But, to do that we have to somehow be able to access breakpoint locations from the Toolbox code. It means having an access to options.breakpoints from target.js code, i.e. commands.js's breakpoints. That, without having to open the Debugger panel.

This also probably depends on toggling TargetList.listenForWorkers, so that the toolbox get notified about workers targets. And also ensure requesting workers to pause, like this, from Toolbox code. We can probably do better than calling a ThreadActor method, as this is rather related to listWorkers/TargetList.watchTargets([WORKERS]) rather than the thread actor!

The pros of doing all that:

  • We attach all thread actors from toolbox code, for all target types
  • We support early breakpoints for (service) workers, even if the debugger isn't opened yet
  • And ultimately, we will be compatible with fission and early breakpoint. Until we do that, we will break support of early breakpoint in remote frames.

Tracking Fission DevTools bugs for Fission Nightly (M6) milestone

Fission Milestone: --- → M6
Assignee: nobody → jlaster
Status: NEW → ASSIGNED

Tracking dt-fission-m2-mvp bugs for Fission Nightly milestone (M6c)

Fission Milestone: M6 → M6c
Attachment #9148087 - Attachment is obsolete: true
Attachment #9148091 - Attachment description: Bug 1633727 - Always attach thread front from toolbox code. r=ochameau → Bug 1633727 - Always attach thread front from toolbox code. r=jdescottes
Depends on: 1644808
Depends on: 1644813
Depends on: 1644820
Attachment #9148091 - Attachment description: Bug 1633727 - Always attach thread front from toolbox code. r=jdescottes → Bug 1633727 - Always attach thread front from toolbox code. r=ochameau
Attachment #9148091 - Attachment description: Bug 1633727 - Always attach thread front from toolbox code. r=ochameau → Bug 1633727 - Always attach thread front from toolbox code. r=jdescottes
Attachment #9148091 - Attachment description: Bug 1633727 - Always attach thread front from toolbox code. r=jdescottes → Bug 1633727 - Always attach thread front from toolbox code. r=ochameau
Attachment #9148091 - Attachment description: Bug 1633727 - Always attach thread front from toolbox code. r=ochameau → Bug 1633727 - Always attach thread front from toolbox code. r=jdescottes
Depends on: 1647354
Attachment #9148091 - Attachment description: Bug 1633727 - Always attach thread front from toolbox code. r=jdescottes → Bug 1633727 - Always attach thread front from toolbox code. r=ochameau
Attachment #9148091 - Attachment description: Bug 1633727 - Always attach thread front from toolbox code. r=ochameau → Bug 1633727 - Always attach thread front from toolbox code. r=jdescottes
Attachment #9148091 - Attachment description: Bug 1633727 - Always attach thread front from toolbox code. r=jdescottes → Bug 1633727 - Always attach thread front from toolbox code. r=ochameau
Assignee: jlaster → nobody
Status: ASSIGNED → NEW
Severity: -- → S3
Priority: -- → P2

Let's try to resume this :)

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED

Depends on D75157

A thread actor attach error shows up as
Protocol error (unknownError): error occurred while processing 'attach':
[object Object] from: server0.conn145.content-process36/workerTarget5/thread1

[object Object] is a legacy {error, message} object thrown by the thread actor

Depends on D83507

Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/039297a5c7ae
Always attach thread front from toolbox code. r=ochameau,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/e172ba6bee70
Improve error reporting for legacy actors r=nchevobbe
https://hg.mozilla.org/integration/autoland/rev/9d6c24b03c1b
Skip attaching thread for already attached thread fronts r=ochameau,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
Regressions: 1655951
Regressed by: 1657194
No longer regressed by: 1657194
Regressions: 1657194
Regressions: 1670593
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: