Add a destroy function to targetList
Categories
(DevTools :: Framework, task, P1)
Tracking
(firefox81 fixed, firefox82 fixed)
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
Details
Attachments
(1 file)
47 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details | Review |
At the moment, we don't have any guards in the targetList to not execute the creation/destruction listeners once the toolbox gets destroyed.
We only have a stopListening
function on the targetList that is called when we close the toolbox, but we can't rely only on that since it's also called when doing a target switch (and working around that is very racy).
One solution would be to follow the common pattern we have everywhere by having a destroy method that we would check before trying to call the listeners callback.
This might help with intermittent.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
At the moment, we don't have any guards in the targetList to not execute the
creation/destruction listeners once the toolbox gets destroyed.
We only have a stopListening function on the targetList that is called when we
close the toolbox, but we can't rely only on that since it's also called when
doing a target switch (and working around that is very racy).
One solution would be to follow the common pattern we have everywhere by having
a destroy method that we would check before trying to call the listeners callback.
This might help with intermittent test failures.
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9b8ca74d313f Add a destroy function to targetList. r=jdescottes.
Comment 3•4 years ago
|
||
bugherder |
Comment 4•4 years ago
|
||
Comment on attachment 9172970 [details]
Bug 1662054 - Add a destroy function to targetList. r=jdescottes.
Needed for bug 1660466. Approved for 81.0b8.
Comment 5•4 years ago
|
||
bugherder uplift |
Description
•