gecko-dev/remote/domains/parent
Andreas Tolfsen 888b647600 bug 1546385: remote: listen for target to connect sooner; r=ochameau
TabManager.addTab(), and consequently gBrowser.addTab(), causes
tabs to open before Target#createTarget() gets time to install an
listener for a new target.

Since targets are created on the TabOpen event, we must install the
listener before we open the tab.  This has the consequence that we
cannot reliably tell where the first target that connects comes from.
For this reason, this makes a functional change to return an error
if such an eventuality should arise.

This patch fixes the failing remote/test/browser/browser_target.js
browser-chrome test.

Differential Revision: https://phabricator.services.mozilla.com/D28492

--HG--
extra : moz-landing-system : lando
2019-04-24 07:45:19 +00:00
..
Browser.jsm Bug 1533679 - Implement Browser.close. r=ato 2019-03-10 12:51:05 +00:00
Target.jsm bug 1546385: remote: listen for target to connect sooner; r=ochameau 2019-04-24 07:45:19 +00:00