commit 7f16ada703d07b1b0140eaf12dd3e93864c14568
Author: Arthur Edelstein <arthuredelst...@gmail.com>
Date:   Wed Oct 5 00:15:47 2016 +0000

    Bug 20244.6: Overlay checkboxes to use torbutton translations
---
 src/chrome.manifest                          |  1 +
 src/chrome/content/privacy-prefs-overlay.xul | 13 +++++++++++++
 src/chrome/locale/en/torbutton.dtd           |  2 ++
 3 files changed, 16 insertions(+)

diff --git a/src/chrome.manifest b/src/chrome.manifest
index 78da042..ed3f5cf 100644
--- a/src/chrome.manifest
+++ b/src/chrome.manifest
@@ -14,6 +14,7 @@ overlay chrome://browser/content/aboutDialog.xul 
chrome://torbutton/content/abou
 
 # UI customization
 overlay chrome://browser/content/baseMenuOverlay.xul 
chrome://torbutton/content/menu-overlay.xul
+overlay about:preferences chrome://torbutton/content/privacy-prefs-overlay.xul
 
 # Strings for the about:tbupdate page
 override chrome://browser/locale/aboutTBUpdate.dtd 
chrome://torbutton/locale/aboutTBUpdate.dtd
diff --git a/src/chrome/content/privacy-prefs-overlay.xul 
b/src/chrome/content/privacy-prefs-overlay.xul
new file mode 100644
index 0000000..952f9b6
--- /dev/null
+++ b/src/chrome/content/privacy-prefs-overlay.xul
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE page SYSTEM "chrome://torbutton/locale/torbutton.dtd">
+
+<overlay id="privacy-prefs-overlay"
+         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";>
+  <checkbox id="thirdpartyIsolateCB"
+            label="&torbutton.prefs.restrict_thirdparty;"
+            accesskey="&torbutton.prefs.restrict_thirdparty.accesskey;"/>
+  <checkbox id="resistFingerprintingCB"
+            label="&torbutton.prefs.resist_fingerprinting;"
+            accesskey="&torbutton.prefs.resist_fingerprinting.accesskey;"/>
+</overlay>
diff --git a/src/chrome/locale/en/torbutton.dtd 
b/src/chrome/locale/en/torbutton.dtd
index 9fd9dae..0ea18e5 100644
--- a/src/chrome/locale/en/torbutton.dtd
+++ b/src/chrome/locale/en/torbutton.dtd
@@ -25,8 +25,10 @@
 <!ENTITY torbutton.cookiedialog.saveAllCookies "Protect New Cookies">
 <!ENTITY torbutton.cookiedialog.doNotSaveAllCookies "Do Not Protect New 
Cookies">
 <!ENTITY torbutton.prefs.restrict_thirdparty "Restrict third party cookies and 
other tracking data">
+<!ENTITY torbutton.prefs.restrict_thirdparty.accesskey "R">
 <!ENTITY torbutton.prefs.restrict_thirdparty_tooltip "Keep this box checked to 
prevent various browser features from being abused to track you as you browse 
the web. Modified features include blob URLs, broadcast channels, the browser 
cache, cookies, favicons, HTTP Auth headers, link preconnects, localStorage, 
mediaSource URLs, OCSP requests, SharedWorkers, and TLS session tickets.">
 <!ENTITY torbutton.prefs.resist_fingerprinting "Change details that 
distinguish you from other Tor Browser users">
+<!ENTITY torbutton.prefs.resist_fingerprinting.accesskey "F">
 <!ENTITY torbutton.prefs.resist_fingerprinting_tooltip "Keep this box checked 
to hide things from websites that could be unique about you, including your 
battery status, computer performance, keyboard layout, locale, the location of 
installed plugins, the list of installed plugins, your network status, screen 
orientation, screen size, site-specific zoom levels, supported file types, 
system colors, and WebGL capabilities.">
 <!ENTITY torbutton.prefs.sec_caption "Security Level">
 <!ENTITY torbutton.prefs.sec_caption_tooltip "The Security Slider lets you 
disable certain browser features that may make your browser more vulnerable to 
hacking attempts.">

_______________________________________________
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to