Bug 1246411 - Remove unreachable break statements; r=automatedtester
authorAndreas Tolfsen <ato@mozilla.com>
Sat, 06 Feb 2016 18:19:46 +0000
changeset 330104 662bfc73887e7cc48e2f48bfc5bb5d85b91c8002
parent 330103 c1abf28f3b73f5aa668197da4aa68081d9eb7680
child 330105 ae350a962463f7611da73f156665cffd2051dbfd
push id10675
push userbmo:james@hoppipolla.co.uk
push dateWed, 10 Feb 2016 15:13:04 +0000
reviewersautomatedtester
bugs1246411
milestone47.0a1
Bug 1246411 - Remove unreachable break statements; r=automatedtester MozReview-Commit-ID: 7l0OEwIKoHS
testing/marionette/driver.js
--- a/testing/marionette/driver.js
+++ b/testing/marionette/driver.js
@@ -711,16 +711,17 @@ GeckoDriver.prototype.setUpProxy = funct
 
       case "SYSTEM":
         Preferences.set("network.proxy.type", 5);
         break;
 
       case "NOPROXY":
       default:
         Preferences.set("network.proxy.type", 0);
+        break;
     }
   } else {
     throw new InvalidArgumentError("Value of 'proxy' should be an object");
   }
 };
 
 /**
  * Log message.  Accepts user defined log-level.
@@ -2624,17 +2625,16 @@ GeckoDriver.prototype.takeScreenshot = f
       context.drawWindow(win, 0, 0, width, height, "rgb(255,255,255)", flags);
       let dataUrl = canvas.toDataURL("image/png", "");
       let data = dataUrl.substring(dataUrl.indexOf(",") + 1);
       resp.body.value = data;
       break;
 
     case Context.CONTENT:
       return this.listener.takeScreenshot(id, full, highlights);
-      break;
   }
 };
 
 /**
  * Get the current browser orientation.
  *
  * Will return one of the valid primary orientation values
  * portrait-primary, landscape-primary, portrait-secondary, or