summaryrefslogtreecommitdiff
path: root/security/manager
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-11-04 15:04:12 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-11-04 15:04:12 +0100
commit35e4815a9d6bcedc88b7619bfb86b2bfe5234339 (patch)
tree464aab7a7ab88579810cb29ea3e76f9920480b24 /security/manager
parent372b2884b6a30da64a63f5881bee2b191cc4e9dd (diff)
downloaduxp-35e4815a9d6bcedc88b7619bfb86b2bfe5234339.tar.gz
Issue mcp-graveyard/UXP#1064 - Part 2: Fix shorthand and services module import.
Diffstat (limited to 'security/manager')
-rw-r--r--security/manager/pki/resources/content/exceptionDialog.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/security/manager/pki/resources/content/exceptionDialog.js b/security/manager/pki/resources/content/exceptionDialog.js
index 9d70ebdced..d227c3117e 100644
--- a/security/manager/pki/resources/content/exceptionDialog.js
+++ b/security/manager/pki/resources/content/exceptionDialog.js
@@ -13,7 +13,10 @@ var gChecking;
var gBroken;
var gNeedReset;
-Components.utils.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
+const {interfaces: Ci, classes: Cc, results: Cr, utils: Cu} = Components;
+
+Cu.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
+Cu.import("resource://gre/modules/Services.jsm");
function initExceptionDialog() {
@@ -286,8 +289,8 @@ function addException() {
return;
}
- var overrideService = Components.classes["@mozilla.org/security/certoverride;1"]
- .getService(Components.interfaces.nsICertOverrideService);
+ var overrideService = Cc["@mozilla.org/security/certoverride;1"]
+ .getService(Ci.nsICertOverrideService);
var flags = 0;
if (gSSLStatus.isUntrusted) {
flags |= overrideService.ERROR_UNTRUSTED;