Open Bug 1600714 Opened 6 years ago Updated 4 years ago

target-list getAllTargets/watchTargets might throw if called during switchToTarget

Categories

(DevTools :: General, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: jdescottes, Unassigned)

References

Details

Follow up to Bug 1588868, thanks to a review comment from :rcaliman at https://phabricator.services.mozilla.com/D54872#1686535

With the current implementation of TargetList::switchToFrame, there will be some period of time where this._isListening will return false for types which are being "re-listened" to.

If a consumer calls getAllTargets or watchTargets during that time the APIs will throw, even though the types are actually supported and will be available a moment later.

We should either make this robust or stop throwing. (developed it some more in https://phabricator.services.mozilla.com/D54872#1687809)

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.