Bug 1103196 - Add insecure certificate error; r?automatedtester draft
authorAndreas Tolfsen <ato@mozilla.com>
Sun, 06 Nov 2016 18:00:18 +0000
changeset 439889 721295480f0f2e4f454b3b8297fe7c64d2c98fad
parent 439888 5126cfe707a48b7aff2e7db0b4e3f40000db19f6
child 439890 007b922c4edce2b4181f0f23363c3c3a6803076f
push id36114
push userbmo:ato@mozilla.com
push dateWed, 16 Nov 2016 18:21:30 +0000
reviewersautomatedtester
bugs1103196
milestone53.0a1
Bug 1103196 - Add insecure certificate error; r?automatedtester MozReview-Commit-ID: 26wwOuqWhog
testing/marionette/client/marionette_driver/errors.py
testing/marionette/error.js
--- a/testing/marionette/client/marionette_driver/errors.py
+++ b/testing/marionette/client/marionette_driver/errors.py
@@ -55,16 +55,20 @@ class MarionetteException(Exception):
 
         return msg
 
 
 class ElementNotSelectableException(MarionetteException):
     status = "element not selectable"
 
 
+class InsecureCertificateException(MarionetteException):
+    status = "insecure certificate"
+
+
 class InvalidArgumentException(MarionetteException):
     status = "invalid argument"
 
 
 class InvalidSessionIdException(MarionetteException):
     status = "invalid session id"
 
 
--- a/testing/marionette/error.js
+++ b/testing/marionette/error.js
@@ -4,16 +4,17 @@
 
 "use strict";
 
 const {interfaces: Ci, utils: Cu} = Components;
 
 const ERRORS = new Set([
   "ElementNotAccessibleError",
   "ElementNotVisibleError",
+  "InsecureCertificateError",
   "InvalidArgumentError",
   "InvalidElementStateError",
   "InvalidSelectorError",
   "InvalidSessionIdError",
   "JavaScriptError",
   "NoAlertOpenError",
   "NoSuchElementError",
   "NoSuchFrameError",
@@ -224,16 +225,23 @@ ElementNotAccessibleError.prototype = Ob
 
 this.ElementNotVisibleError = function(msg) {
   WebDriverError.call(this, msg);
   this.name = "ElementNotVisibleError";
   this.status = "element not visible";
 };
 ElementNotVisibleError.prototype = Object.create(WebDriverError.prototype);
 
+this.InsecureCertificateError = function(msg) {
+  WebDriverError.call(this, msg);
+  this.name = "InsecureCertificateError";
+  this.status = "insecure certificate";
+};
+InsecureCertificateError.prototype = Object.create(WebDriverError.prototype);
+
 this.InvalidArgumentError = function(msg) {
   WebDriverError.call(this, msg);
   this.name = "InvalidArgumentError";
   this.status = "invalid argument";
 };
 InvalidArgumentError.prototype = Object.create(WebDriverError.prototype);
 
 this.InvalidElementStateError = function(msg) {