Skip to content
Snippets Groups Projects
Commit 3752362f authored by henry's avatar henry Committed by morgan
Browse files

fixup! Bug 23247: Communicating security expectations for .onion

Bug 42212: Migrate onion service strings to Fluent.
parent 04c504aa
Branches
Tags
2 merge requests!1202Bug_43099: 2024 YEC Strings,!1136Bug 43085: Rebased alpha onto 128.2.0esr
......@@ -27,6 +27,7 @@
<html:link rel="stylesheet" href="chrome://browser/skin/pageInfo.css" />
<html:link rel="localization" href="browser/pageInfo.ftl"/>
<html:link rel="localization" href="toolkit/global/tor-browser.ftl"/>
</linkset>
#ifdef XP_MACOSX
#include ../macWindow.inc.xhtml
......
......@@ -15,11 +15,6 @@ const { DownloadUtils } = ChromeUtils.importESModule(
ChromeUtils.defineESModuleGetters(this, {
LoginHelper: "resource://gre/modules/LoginHelper.sys.mjs",
});
ChromeUtils.defineLazyGetter(this, "gTorButtonBundle", function () {
return Services.strings.createBundle(
"chrome://torbutton/locale/torbutton.properties"
);
});
var security = {
async init(uri, windowInfo) {
......@@ -364,9 +359,13 @@ async function securityOnLoad(uri, windowInfo) {
);
} else {
try {
hdr = gTorButtonBundle.formatStringFromName(
"pageInfo_OnionEncryptionWithBitsAndProtocol",
[info.encryptionAlgorithm, info.encryptionStrength + "", info.version]
hdr = await document.l10n.formatValue(
"page-info-onion-site-encryption-with-bits",
{
"encryption-type": info.encryptionAlgorithm,
"encryption-strength": info.encryptionStrength,
"encryption-version": info.version,
}
);
} catch (err) {
hdr =
......@@ -392,11 +391,9 @@ async function securityOnLoad(uri, windowInfo) {
}
msg2 = pkiBundle.getString("pageInfo_Privacy_None2");
} else {
try {
hdr = gTorButtonBundle.GetStringFromName("pageInfo_OnionEncryption");
} catch (err) {
hdr = "Connection Encrypted (Onion Service)";
}
hdr = await document.l10n.formatValue(
"page-info-onion-site-encryption-plain"
);
msg1 = pkiBundle.getString("pageInfo_Privacy_Encrypted1");
msg2 = pkiBundle.getString("pageInfo_Privacy_Encrypted2");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment