Bug 1246411 - Constructors must use new keyword; r?automatedtester
MozReview-Commit-ID: 4fl0Cl3mf5j
--- a/testing/marionette/driver.js
+++ b/testing/marionette/driver.js
@@ -1702,17 +1702,17 @@ GeckoDriver.prototype.switchToFrame = fu
}
}
}
// else, assume iframe
let frames = curWindow.document.getElementsByTagName("iframe");
let numFrames = frames.length;
for (let i = 0; i < numFrames; i++) {
- if (XPCNativeWrapper(frames[i]) == XPCNativeWrapper(wantedFrame)) {
+ if (new XPCNativeWrapper(frames[i]) == new XPCNativeWrapper(wantedFrame)) {
curWindow = frames[i].contentWindow;
this.curFrame = curWindow;
if (focus) {
this.curFrame.focus();
}
checkTimer.initWithCallback(checkLoad.bind(this), 100, Ci.nsITimer.TYPE_ONE_SHOT);
return;
}