Bug 1103196 - Add insecure certificate error; r=automatedtester
authorAndreas Tolfsen <ato@mozilla.com>
Sun, 06 Nov 2016 18:00:18 +0000
changeset 324308 7c9f81f27145a993566f62ccffc070138600617a
parent 324307 322b7d11be2d05f3d79079f48f25de3333e1582a
child 324309 ca031e434fb9655aba646d3728360da5ff09979d
push id30998
push userphilringnalda@gmail.com
push dateSun, 27 Nov 2016 01:53:20 +0000
treeherdermozilla-central@3d81e7906de6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersautomatedtester
bugs1103196
milestone53.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
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
@@ -50,16 +50,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) {