gecko-dev/remote/test
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 bug 1546385: remote: listen for target to connect sooner; r=ochameau 2019-04-24 07:45:19 +00:00
unit bug 1540684: remote: write tests for Error.jsm's current behaviour; r=ochameau 2019-04-04 09:57:29 +00:00
demo.js bug 1523104: remote: remove unsupported feature in demo; r=ochameau 2019-03-08 16:27:49 +00:00
moz.build bug 1523104: remote: add browser mochitest to test the agent via chrome-remote-interface; r=ato 2019-03-08 16:26:39 +00:00
puppeteer-demo.js Bug 1533682 - Implements empty domains used by puppeteer. r=ato 2019-03-11 12:51:09 +00:00