[tbb-commits] [tor-browser/tor-browser-68.2.0esr-9.5-1] fixup! Bug 25658: Replace security slider with security level UI

gk at torproject.org gk at torproject.org
Tue Nov 19 14:21:13 UTC 2019


commit 39861885e9837439fab9e3bf7aece4a21271e64b
Author: Richard Pospesel <richard at torproject.org>
Date:   Mon Nov 18 12:13:00 2019 -0800

    fixup! Bug 25658: Replace security slider with security level UI
    
    Fixes bug 32539.
---
 browser/components/securitylevel/content/securityLevel.js               | 2 +-
 .../components/securitylevel/content/securityLevelPreferences.inc.xul   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/browser/components/securitylevel/content/securityLevel.js b/browser/components/securitylevel/content/securityLevel.js
index 7b3e7e4f92f9..2081eabb4176 100644
--- a/browser/components/securitylevel/content/securityLevel.js
+++ b/browser/components/securitylevel/content/securityLevel.js
@@ -334,7 +334,7 @@ const SecurityLevelPreferences =
     let groupbox = document.getElementById("securityLevel-groupbox");
 
     let labelHeader = groupbox.querySelector("#securityLevel-header");
-    labelHeader.setAttribute("value", TorStrings.securityLevel.securityLevel);
+    labelHeader.textContent = TorStrings.securityLevel.securityLevel;
 
     let spanOverview = groupbox.querySelector("#securityLevel-overview");
     spanOverview.textContent = TorStrings.securityLevel.overview;
diff --git a/browser/components/securitylevel/content/securityLevelPreferences.inc.xul b/browser/components/securitylevel/content/securityLevelPreferences.inc.xul
index 0e68800e2766..a81b8d299789 100644
--- a/browser/components/securitylevel/content/securityLevelPreferences.inc.xul
+++ b/browser/components/securitylevel/content/securityLevelPreferences.inc.xul
@@ -1,5 +1,5 @@
 <groupbox id="securityLevel-groupbox" data-category="panePrivacy" hidden="true">
-  <caption><label id="securityLevel-header"/></caption>
+  <label><html:h2 id="securityLevel-header"/></label>
   <vbox data-subcategory="securitylevel" flex="1">
     <description flex="1">
       <html:span id="securityLevel-overview" class="tail-with-learn-more"/>



More information about the tbb-commits mailing list