mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 23:37:33 +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 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue