mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
DevTools - network - security (improvements)
https://github.com/MoonchildProductions/moebius/pull/113 https://github.com/MoonchildProductions/moebius/pull/118 https://github.com/MoonchildProductions/moebius/pull/127
This commit is contained in:
parent
f92a4b1c8a
commit
38e95f9e35
13 changed files with 258 additions and 15 deletions
|
|
@ -63,6 +63,8 @@ const {components, Cc, Ci} = require("chrome");
|
|||
loader.lazyImporter(this, "NetUtil", "resource://gre/modules/NetUtil.jsm");
|
||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
const Services = require("Services");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
const L10N = new LocalizationHelper("devtools/client/locales/netmonitor.properties");
|
||||
|
||||
// The cache used in the `nsIURL` function.
|
||||
const gNSURLStore = new Map();
|
||||
|
|
@ -620,6 +622,31 @@ var NetworkHelper = {
|
|||
// Cipher suite.
|
||||
info.cipherSuite = SSLStatus.cipherName;
|
||||
|
||||
// Key exchange group name.
|
||||
info.keaGroupName = SSLStatus.keaGroupName;
|
||||
// Localise two special values.
|
||||
if (info.keaGroupName == "none") {
|
||||
info.keaGroupName = L10N.getStr("netmonitor.security.keaGroup.none");
|
||||
}
|
||||
if (info.keaGroupName == "custom") {
|
||||
info.keaGroupName = L10N.getStr("netmonitor.security.keaGroup.custom");
|
||||
}
|
||||
if (info.keaGroupName == "unknown group") {
|
||||
info.keaGroupName = L10N.getStr("netmonitor.security.keaGroup.unknown");
|
||||
}
|
||||
|
||||
// Certificate signature scheme.
|
||||
info.signatureSchemeName = SSLStatus.signatureSchemeName;
|
||||
// Localise two special values.
|
||||
if (info.signatureSchemeName == "none") {
|
||||
info.signatureSchemeName =
|
||||
L10N.getStr("netmonitor.security.signatureScheme.none");
|
||||
}
|
||||
if (info.signatureSchemeName == "unknown signature") {
|
||||
info.signatureSchemeName =
|
||||
L10N.getStr("netmonitor.security.signatureScheme.unknown");
|
||||
}
|
||||
|
||||
// Protocol version.
|
||||
info.protocolVersion =
|
||||
this.formatSecurityProtocol(SSLStatus.protocolVersion);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue