Closed
Bug 1497467
Opened 6 years ago
Closed 6 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•6 years ago
|
Severity: normal → enhancement
Priority: -- → P2
Assignee | ||
Updated•6 years ago
|
Whiteboard: dt-fission
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → poirot.alex
Assignee | ||
Comment 1•6 years ago
|
||
Try run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=6650a462a5659a99b897e0d69c09c261618aeaec
Assignee | ||
Comment 2•6 years ago
|
||
MozReview-Commit-ID: 78Oqsq4mGqW
Assignee | ||
Comment 3•6 years ago
|
||
MozReview-Commit-ID: 78Oqsq4mGqW
Updated•6 years ago
|
Attachment #9021563 -
Attachment is obsolete: true
Assignee | ||
Comment 4•6 years ago
|
||
New try run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=645df8f2a714b8213330939fcc7e9316f5d1e185
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/423f407d58bb Convert AddonClient to protocol.js front. r=yulia
Comment 6•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/423f407d58bb
Status: NEW → RESOLVED
Closed: 6 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
•