Bug 1361987 - Move maximizeWindow call to not use a return in a generator. r?ato
The maximizeWindow call in Marionette uses return which is not valid javascript.
This change update the response that is then picked up by the server before
returning to the remote end.
MozReview-Commit-ID: JJzsTHba0AK
--- a/testing/marionette/driver.js
+++ b/testing/marionette/driver.js
@@ -2901,17 +2901,17 @@ GeckoDriver.prototype.maximizeWindow = f
if (win.windowState == win.STATE_MAXIMIZED) {
win.restore();
} else {
win.maximize();
}
});
- return {
+ resp.body.value = {
x: win.screenX,
y: win.screenY,
width: win.outerWidth,
height: win.outerHeight,
};
};
/**