Closed Bug 1681698 Opened 4 years ago Closed 4 years ago

Bootstrap thread actor as soon as we start registering breakpoints via the Watcher actor

Categories

(DevTools :: Debugger, enhancement, P3)

enhancement

Tracking

(Fission Milestone:M7, firefox87 fixed)

RESOLVED FIXED
87 Branch
Fission Milestone M7
Tracking Status
firefox87 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 2 open bugs)

Details

(Whiteboard: dt-fission-m3-mvp)

Attachments

(1 file, 2 obsolete files)

Bug 1573327 ensures registering the breakpoints before the process and page starts loading, but this isn't enough to make early breakpoint to work.
For now, the Thread actor is still attached late from the frontend. This prevents setting up the Debugger API early enough and be able to break.

The goal here would be to followup on bug 1573327 and make it so that the Thread actor is "attached", or at least register all what is necessary to make the breakpoint to work.
Ultimately, we would need to get rid of the attach sequence from the frontend and automatically bootstrap the thread actor when the target instantiates, or when we register the breakpoints (this is part of target instantiation).

This is a blocker in order to get breakpoint to work correctly during early fission iframe loads.

Blocks: 1681699
Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P3
Whiteboard: dt-fission-m3-mvp

Tracking dt-fission-m3-mvp bugs for Fission MVP.

Fission Milestone: --- → MVP
Depends on: 1682780
Attachment #9192403 - Attachment description: Bug 1681698 - Bootstrap the thread actor early, when the target actor instantiates → Bug 1681698 - [devtools] Bootstrap the thread actor early, when the target actor instantiates

Bin onExceptionUnwind only once, remove unused _scripts attribute, create _debuggerSourcesSeen from constructor.

Depends on: 1686480

Moving the patches that can be landed immediately to bug 1686480.
The one patch left, would have to wait for bug 1683139 to be fixed before landing. That's because we would miss early "paused" packets.
Whereas, if pauses are resources, they will no longer be missed. The resource watcher will receive them, even if emitted early during process startup. And the panel, even if not opened yet, will receive them from the ResourceWatcher cache.

Comment on attachment 9196605 [details]
Bug 1681698 - [devtools] Allow all options currently passed to ThreadActor.attach to be passed via ThreadActor.reconfigure.

Revision D101471 was moved to bug 1686480. Setting attachment 9196605 [details] to obsolete.

Attachment #9196605 - Attachment is obsolete: true

Comment on attachment 9196604 [details]
Bug 1681698 - [devtools] A few naive cleanups in ThreadActor.

Revision D101470 was moved to bug 1686480. Setting attachment 9196604 [details] to obsolete.

Attachment #9196604 - Attachment is obsolete: true

Moving some dt-fission-m3-mvp bugs from Fission MVP to M7 (blocking Beta experiment).

Fission Milestone: MVP → M7
Blocks: 1691986
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cf75ed5213a0
[devtools] Bootstrap the thread actor early, when the target actor instantiates r=jdescottes,nchevobbe,devtools-backward-compat-reviewers
Depends on: 1638219
Flags: needinfo?(poirot.alex)
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0fc4465fe35d
[devtools] Bootstrap the thread actor early, when the target actor instantiates r=jdescottes,nchevobbe,devtools-backward-compat-reviewers
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: