Bug 1463085 - Remove unnecessary self-assignment. r?maja_zf
Prior to
bug 1400256 we used to have to deserialise the web
element received from chrome space manually, and presumably this
self-assignment is a leftover from that time.
This fixes an eslint error upon upgrading to eslint version 5.
Thanks-to: Mark Banner <standard8@mozilla.com>
MozReview-Commit-ID: A46wK71AwBe
--- a/testing/marionette/listener.js
+++ b/testing/marionette/listener.js
@@ -1145,20 +1145,16 @@ function getPageSource() {
* given search strategy.
*/
async function findElementContent(strategy, selector, opts = {}) {
if (!SUPPORTED_STRATEGIES.has(strategy)) {
throw new InvalidSelectorError("Strategy not supported: " + strategy);
}
opts.all = false;
- if (opts.startNode) {
- opts.startNode = opts.startNode;
- }
-
let el = await element.find(curContainer, strategy, selector, opts);
return seenEls.add(el);
}
/**
* Find elements in the current browsing context's document using the
* given search strategy.
*/