Bug 1330348 - get() command should not automatically focus tab.
The spec doesn't say something about a requirement to focus the tab when a navigation
request is happening.
Also it would break tests when navigation requests are issued for background tabs.
MozReview-Commit-ID: JTUKq55UBCH
--- a/testing/marionette/driver.js
+++ b/testing/marionette/driver.js
@@ -963,17 +963,16 @@ GeckoDriver.prototype.get = function*(cm
cmd.parameters.command_id = id;
cmd.parameters.pageTimeout = this.timeouts.pageLoad;
this.mm.broadcastAsyncMessage(
"Marionette:pollForReadyState" + this.curBrowser.curFrameId,
cmd.parameters);
});
yield get;
- browser.getBrowserForTab(this.curBrowser.tab).focus();
};
/**
* Get a string representing the current URL.
*
* On Desktop this returns a string representation of the URL of the
* current top level browsing context. This is equivalent to
* document.location.href.