[tbb-commits] [tor-browser] 06/08: fixup! Bug 25658: Replace security slider with security level UI
gitolite role
git at cupani.torproject.org
Fri Jun 17 18:32:42 UTC 2022
This is an automated email from the git hooks/post-receive script.
richard pushed a commit to branch tor-browser-91.10.0esr-11.5-1
in repository tor-browser.
commit e27326c6cb303f32a5b7962fc202efcdf49e5c63
Author: Pier Angelo Vendrame <pierov at torproject.org>
AuthorDate: Tue Jun 14 20:10:30 2022 +0200
fixup! Bug 25658: Replace security slider with security level UI
Make sure about:manual links can be opened
---
browser/components/securitylevel/content/securityLevel.js | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/browser/components/securitylevel/content/securityLevel.js b/browser/components/securitylevel/content/securityLevel.js
index 8b8babe5b58ef..95770dbc6bed9 100644
--- a/browser/components/securitylevel/content/securityLevel.js
+++ b/browser/components/securitylevel/content/securityLevel.js
@@ -230,6 +230,9 @@ const SecurityLevelPanel = {
elements.customLabel.setAttribute("value", TorStrings.securityLevel.customWarning);
elements.learnMoreLabel.setAttribute("value", TorStrings.securityLevel.learnMore);
elements.learnMoreLabel.setAttribute("href", TorStrings.securityLevel.learnMoreURL);
+ if (TorStrings.securityLevel.learnMoreURL.startsWith("about:")) {
+ elements.learnMoreLabel.setAttribute("useoriginprincipal", "true");
+ }
elements.restoreDefaultsButton.setAttribute("label", TorStrings.securityLevel.restoreDefaults);
elements.changeButton.setAttribute("label", TorStrings.securityLevel.change);
@@ -367,6 +370,9 @@ const SecurityLevelPreferences =
let labelLearnMore = groupbox.querySelector("#securityLevel-learnMore");
labelLearnMore.setAttribute("value", TorStrings.securityLevel.learnMore);
labelLearnMore.setAttribute("href", TorStrings.securityLevel.learnMoreURL);
+ if (TorStrings.securityLevel.learnMoreURL.startsWith("about:")) {
+ labelLearnMore.setAttribute("useoriginprincipal", "true");
+ }
let radiogroup = document.getElementById("securityLevel-radiogroup");
radiogroup.addEventListener("command", SecurityLevelPreferences.selectSecurityLevel);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the tbb-commits
mailing list