Bug 1676671 - [marionette] Remove unused return value from driver::registerBrowser r=marionette-reviewers,maja_zf

Depends on D98780

The existing call sites for registerBrowser do not read the return value:
https://searchfox.org/mozilla-central/rev/6bb59b783b193f06d6744c5ccaac69a992e9ee7b/testing/marionette/driver.js#634
https://searchfox.org/mozilla-central/rev/6bb59b783b193f06d6744c5ccaac69a992e9ee7b/testing/marionette/driver.js#3668

and it is currently not documented.

Differential Revision: https://phabricator.services.mozilla.com/D98781
This commit is contained in:
Julian Descottes 2020-12-11 15:49:59 +00:00
parent 7e23a6e87c
commit b21a958eae

View File

@ -634,8 +634,6 @@ GeckoDriver.prototype.registerBrowser = function(browserElement) {
const browsingContext = browserElement.browsingContext;
this.wins.set(browsingContext.id, browsingContext.currentWindowGlobal);
return browsingContext.id;
};
GeckoDriver.prototype.registerPromise = function() {