Bug 1378227 - Reintroduce window test for Marionette:GetWindowRect; r?whimboo
When linting the Marionette server code,
https://searchfox.org/mozilla-central/commit/de001d80b777ff0fcfa823a52e8d49b4981af040
accidentally removed the missing window check from the
Marionette:GetWindowRect command. This change reintroduces the
check that was accidentally removed.
MozReview-Commit-ID: FkDOUKR2dIi
--- a/testing/marionette/driver.js
+++ b/testing/marionette/driver.js
@@ -1309,16 +1309,17 @@ GeckoDriver.prototype.getChromeWindowHan
* of browser window.
*
* @throws {NoSuchWindowError}
* Top-level browsing context has been discarded.
* @throws {UnexpectedAlertOpenError}
* A modal dialog is open, blocking this operation.
*/
GeckoDriver.prototype.getWindowRect = function(cmd, resp) {
+ assert.window(this.getCurrentWindow());
assert.noUserPrompt(this.dialog);
return this.curBrowser.rect;
};
/**
* Set the window position and size of the browser on the operating
* system window manager.
*