☠☠ backed out by 4f4dcc23d36b ☠ ☠ | |
author | Andreas Tolfsen <ato@mozilla.com> |
Mon, 21 Nov 2016 23:33:03 +0100 | |
changeset 341008 | feaf6ba3bd9a781a68adecf8846457b8f2549a74 |
parent 341007 | f5f206ed675b42e520c03c2754a4d56437790390 |
child 341009 | 778721edd8b932f7b06a89611f490d80525cd7c8 |
push id | 86615 |
push user | kwierso@gmail.com |
push date | Tue, 07 Feb 2017 01:52:08 +0000 |
treeherder | mozilla-inbound@f0453084d86e [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | automatedtester |
bugs | 1319237 |
milestone | 54.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
testing/marionette/browser.js | file | annotate | diff | comparison | revisions | |
testing/marionette/driver.js | file | annotate | diff | comparison | revisions |
--- a/testing/marionette/browser.js +++ b/testing/marionette/browser.js @@ -366,26 +366,16 @@ browser.Context = class { executeWhenReady(cb) { if (this.hasRemotenessChange()) { this.pendingCommands.push(cb); } else { cb(); } } - /** - * Returns the position of the OS window. - */ - get position() { - return { - x: this.window.screenX, - y: this.window.screenY, - }; - } - }; /** * The window storage is used to save outer window IDs mapped to weak * references of Window objects. * * Usage: *
--- a/testing/marionette/driver.js +++ b/testing/marionette/driver.js @@ -1151,17 +1151,21 @@ GeckoDriver.prototype.getChromeWindowHan /** * Get the current window position. * * @return {Object.<string, number>} * Object with |x| and |y| coordinates. */ GeckoDriver.prototype.getWindowPosition = function (cmd, resp) { - return this.curBrowser.position; + let win = this.getCurrentWindow(); + return { + x: win.screenX, + y: win.screenY, + }; }; /** * Set the window position of the browser on the OS Window Manager * * @param {number} x * X coordinate of the top/left of the window that it will be * moved to.