Closed
Bug 1497467
Opened 7 years ago
Closed 7 years ago
Convert AddonClient to protocol.js front
Categories
(DevTools :: Framework, enhancement, P2)
DevTools
Framework
Tracking
(firefox65 fixed)
RESOLVED
FIXED
Firefox 65
| Tracking | Status | |
|---|---|---|
| firefox65 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
(Blocks 1 open bug)
Details
(Whiteboard: dt-fission)
Attachments
(1 file, 1 obsolete file)
AddonClient is the client class to connect to Target actors like AddonTargetActor.
We should convert that client class to a protocol.js front.
It is going to help later merge TabTarget into such front (bug 1465635)
AddonClient is currently only created from attachThread over here:
https://searchfox.org/mozilla-central/rev/29aea2a2a3bd0f5e25ce0b60a76053fb25ba5149/devtools/client/framework/attach-thread.js#101-103
target.client.attachAddon(actor).then(([res]) => {
target.client.attachThread(res.threadActor).then(handleResponse);
});
This is the `res` object over here.
At the end, we don't call any of this client method, we only retrieve its `threadActor` property.
Instead, here, we should call `attach()` on the front and also possibly "attach the addon target front" (client.attachAddon) from TabTarget rather than attachThread. That would better match what we are doing for other targets.
Updated•7 years ago
|
Severity: normal → enhancement
Priority: -- → P2
| Assignee | ||
Updated•7 years ago
|
Whiteboard: dt-fission
| Assignee | ||
Updated•7 years ago
|
Assignee: nobody → poirot.alex
| Assignee | ||
Comment 1•7 years ago
|
||
| Assignee | ||
Comment 2•7 years ago
|
||
MozReview-Commit-ID: 78Oqsq4mGqW
| Assignee | ||
Comment 3•7 years ago
|
||
MozReview-Commit-ID: 78Oqsq4mGqW
Updated•7 years ago
|
Attachment #9021563 -
Attachment is obsolete: true
| Assignee | ||
Comment 4•7 years ago
|
||
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/423f407d58bb
Convert AddonClient to protocol.js front. r=yulia
Comment 6•7 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
You need to log in
before you can comment on or make changes to this bug.
Description
•