зеркало из https://github.com/mozilla/gecko-dev.git
888b647600
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 |
||
---|---|---|
.. | ||
Browser.jsm | ||
Target.jsm |