Closed Bug 1662054 Opened 4 years ago Closed 4 years ago

Add a destroy function to targetList

Categories

(DevTools :: Framework, task, P1)

task

Tracking

(firefox81 fixed, firefox82 fixed)

RESOLVED FIXED
82 Branch
Tracking Status
firefox81 --- fixed
firefox82 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

Attachments

(1 file)

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: nobody → nchevobbe
Severity: -- → N/A
Status: NEW → ASSIGNED
Priority: -- → P1

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.
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch

Comment on attachment 9172970 [details]
Bug 1662054 - Add a destroy function to targetList. r=jdescottes.

Needed for bug 1660466. Approved for 81.0b8.

Attachment #9172970 - Flags: approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: