mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 02:17:34 +09:00
Issue #1064 - Part 2: Fix shorthand and services module import.
This commit is contained in:
parent
6c3b83022a
commit
db9333e3c8
1 changed files with 6 additions and 3 deletions
|
|
@ -13,7 +13,10 @@ var gChecking;
|
||||||
var gBroken;
|
var gBroken;
|
||||||
var gNeedReset;
|
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() {
|
function initExceptionDialog() {
|
||||||
|
|
@ -286,8 +289,8 @@ function addException() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var overrideService = Components.classes["@mozilla.org/security/certoverride;1"]
|
var overrideService = Cc["@mozilla.org/security/certoverride;1"]
|
||||||
.getService(Components.interfaces.nsICertOverrideService);
|
.getService(Ci.nsICertOverrideService);
|
||||||
var flags = 0;
|
var flags = 0;
|
||||||
if (gSSLStatus.isUntrusted) {
|
if (gSSLStatus.isUntrusted) {
|
||||||
flags |= overrideService.ERROR_UNTRUSTED;
|
flags |= overrideService.ERROR_UNTRUSTED;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue