The previous code, emitting the event from Toolbox.onTargetAvailable, wasn't waiting for the call to TargetList.startListening which is done from TargetList.onTargetAvailable. Differential Revision: https://phabricator.services.mozilla.com/D82664
1651665
1622328