Backed out changeset c1fb88d419ca (bug 1257526)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Tue, 22 Mar 2016 13:21:20 +0100
changeset 289775 4711cd73ee95b533b0f37ae0fa0d21ca90fd5264
parent 289774 fa5a9df70ca49ab076458059490fb68e27642c9f
child 289776 d087c2f9a1cae0c94ee578edc2aef6de1177ae70
push id73983
push usercbook@mozilla.com
push dateTue, 22 Mar 2016 12:21:49 +0000
treeherdermozilla-inbound@d087c2f9a1ca [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1257526
milestone48.0a1
backs outc1fb88d419ca6788f6d0594fb6eafe65d42771df
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
Backed out changeset c1fb88d419ca (bug 1257526)
testing/marionette/driver.js
--- a/testing/marionette/driver.js
+++ b/testing/marionette/driver.js
@@ -2642,18 +2642,18 @@ GeckoDriver.prototype.getWindowSize = fu
  * Not supported on B2G. The supplied width and height values refer to
  * the window outerWidth and outerHeight values, which include scroll
  * bars, title bars, etc.
  *
  * An error will be returned if the requested window size would result
  * in the window being in the maximized state.
  */
 GeckoDriver.prototype.setWindowSize = function(cmd, resp) {
-  if (this.appName != "Firefox") {
-    throw new UnsupportedOperationError();
+  if (this.appName !== "Firefox") {
+    throw new UnsupportedOperationError("Not supported on mobile");
   }
 
   let width = parseInt(cmd.parameters.width);
   let height = parseInt(cmd.parameters.height);
 
   let win = this.getCurrentWindow();
   if (width >= win.screen.availWidth && height >= win.screen.availHeight) {
     throw new UnsupportedOperationError("Invalid requested size, cannot maximize");
@@ -2665,17 +2665,17 @@ GeckoDriver.prototype.setWindowSize = fu
 /**
  * Maximizes the user agent window as if the user pressed the maximise
  * button.
  *
  * Not Supported on B2G or Fennec.
  */
 GeckoDriver.prototype.maximizeWindow = function(cmd, resp) {
   if (this.appName != "Firefox") {
-    throw new UnsupportedOperationError();
+    throw new UnsupportedOperationError("Not supported for mobile");
   }
 
   let win = this.getCurrentWindow();
   win.moveTo(0,0);
   win.resizeTo(win.screen.availWidth, win.screen.availHeight);
 };
 
 /**