Skip to content
Snippets Groups Projects
Commit db7c5811 authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

fixup! Bug 40925: Implemented the Security Level component

Bug 42583: Use moz-support-link for the security level "Learn more"
links. These take you to the tor project web link in base browser.
parent 94392ea9
Branches
Tags
1 merge request!1049Bug 42616 (part 2): Rebased onto Firefox 128.0esr release
......@@ -157,6 +157,9 @@ var SecurityLevelPanel = {
_populated: false,
_populateXUL() {
// TODO: Used for #securityLevel-learnMore. Remove with esr 128.
window.ensureCustomElements("moz-support-link");
this._elements = {
panel: document.getElementById("securityLevel-panel"),
background: document.getElementById("securityLevel-background"),
......@@ -171,9 +174,7 @@ var SecurityLevelPanel = {
const learnMoreEl = document.getElementById("securityLevel-learnMore");
learnMoreEl.addEventListener("click", event => {
window.openTrustedLinkIn(learnMoreEl.href, "tab");
this.hide();
event.preventDefault();
});
this._elements.restoreDefaultsButton.addEventListener("command", () => {
......
......@@ -23,9 +23,10 @@
</html:p>
<html:p id="securityLevel-summary"></html:p>
<html:a
is="moz-support-link"
id="securityLevel-learnMore"
tor-manual-page="security-settings"
data-l10n-id="security-level-panel-learn-more-link"
href="about:manual#security-settings"
></html:a>
</vbox>
<hbox class="panel-footer">
......
......@@ -12,14 +12,11 @@
class="tail-with-learn-more"
data-l10n-id="security-level-preferences-overview"
></html:span>
<label
id="securityLevel-learnMore"
class="learnMore text-link"
is="text-link"
<html:a
is="moz-support-link"
tor-manual-page="security-settings"
data-l10n-id="security-level-preferences-learn-more-link"
href="about:manual#security-settings"
useoriginprincipal="true"
/>
></html:a>
</description>
<hbox
id="securityLevel-customNotification"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment