Closed Bug 1673328 Opened 4 years ago Closed 4 years ago

Remove "exit" logic from target and thread actors

Categories

(DevTools :: Debugger, enhancement, P3)

enhancement

Tracking

(firefox84 fixed)

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

We no longer need to manuall call threadActor.exit from Target Actors
as the ThreadActor is managed by the Target Actors, so that managed children
will be destroyed when the target actor is destroyed.

This was hacking the internals of RDP/protocol.js in order to provide
different names to the actor prototype.
I had to rename existing sources getter to _sources in order to avoid
name collision with onSources which became sources.
(similar thing for skipBreakpoints)
I also had to tweak a few method arguments as they weren't following protocol.js spec.
They were called without protocol.js automatic marshalling of values.
Finally, hack something in protocol.js in order to avoid duplicated response for ThreadActor.attach.

Severity: -- → S3
Priority: -- → P3
Depends on: 1671906
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8d8ad7afc62a
[devtools] Drop unused ThreadActor.detach method. r=nchevobbe,devtools-backward-compat-reviewers
https://hg.mozilla.org/integration/autoland/rev/6d8c713f1434
[devtools] Drop ThreadActor.exit in favor of destroy. r=nchevobbe
https://hg.mozilla.org/integration/autoland/rev/f560d280f658
[devtools] Rename TabSources to SourcesManager. r=nchevobbe
https://hg.mozilla.org/integration/autoland/rev/b0a13898111c
[devtools] Stop using requestTypes in ThreadActor. r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
Regressions: 1678258
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: