Closed
Bug 1615640
Opened 4 years ago
Closed 4 years ago
Remove references to panel.switchToTarget in toolbox::switchToTarget
Categories
(DevTools :: Framework, task, P3)
DevTools
Framework
Tracking
(firefox75 fixed)
RESOLVED
FIXED
Firefox 75
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
Details
Attachments
(1 file)
As discussed with :yzen, we still have some code in toolbox::switchToTarget that call "switchToTarget" on individual panels. However this is not implemented by any panel and should be normally handled via the target list.
This code should be removed
https://searchfox.org/mozilla-central/rev/174f1195ec740e8f17223b48018f7e14e6d4e40e/devtools/client/framework/toolbox.js#522-529
await Promise.all(
[...this._toolPanels.values()].map(panel => {
if (panel.switchToTarget) {
return panel.switchToTarget(newTarget);
}
return Promise.resolve();
})
);
Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/22d3cd05bacf Remove references to panel.switchToTarget in toolbox::switchToTarget r=ochameau
Comment 3•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox75:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 75
You need to log in
before you can comment on or make changes to this bug.
Description
•