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 c1c818b731dd2c76aadcb0619568dd64505160f6 Author: Pier Angelo Vendrame pierov@torproject.org AuthorDate: Wed Jun 15 12:11:18 2022 +0200
fixup! Bug 21952: Implement Onion-Location
Updated the Manual URLs --- browser/components/onionservices/OnionLocationParent.jsm | 3 ++- browser/components/onionservices/content/onionlocationPreferences.js | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/browser/components/onionservices/OnionLocationParent.jsm b/browser/components/onionservices/OnionLocationParent.jsm index f6250e5548625..4ac4a5d0775ea 100644 --- a/browser/components/onionservices/OnionLocationParent.jsm +++ b/browser/components/onionservices/OnionLocationParent.jsm @@ -29,7 +29,8 @@ const NOTIFICATION_OK_ACCESSKEY = TorStrings.onionLocation.alwaysPrioritizeAccessKey; const NOTIFICATION_TITLE = TorStrings.onionLocation.tryThis; const NOTIFICATION_DESCRIPTION = TorStrings.onionLocation.description; -const NOTIFICATION_LEARN_MORE_URL = TorStrings.onionLocation.learnMoreURL; +const NOTIFICATION_LEARN_MORE_URL = + TorStrings.onionLocation.learnMoreURLNotification;
class OnionLocationParent extends JSWindowActorParent { // Listeners are added in BrowserGlue.jsm diff --git a/browser/components/onionservices/content/onionlocationPreferences.js b/browser/components/onionservices/content/onionlocationPreferences.js index aa569b54721cd..005e37d4a9915 100644 --- a/browser/components/onionservices/content/onionlocationPreferences.js +++ b/browser/components/onionservices/content/onionlocationPreferences.js @@ -17,6 +17,9 @@ const OnionLocationPreferences = { const learnMore = document.getElementById("onionServicesLearnMore"); learnMore.textContent = TorStrings.onionLocation.learnMore; learnMore.href = TorStrings.onionLocation.learnMoreURL; + if (TorStrings.onionLocation.learnMoreURL.startsWith("about:")) { + learnMore.setAttribute("useoriginprincipal", "true"); + } document.getElementById("onionServicesRadioAlways").label = TorStrings.onionLocation.always; document.getElementById("onionServicesRadioAsk").label =