From 06b12136ec064fd6a967551066b264ced4131755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= Date: Fri, 7 Oct 2011 09:54:42 +0200 Subject: [PATCH] Autogenerate the list of sanitizer items in :h :sanitize. --- common/content/dactyl.js | 15 +++++++++++++++ common/locale/en-US/privacy.xml | 20 +------------------- 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/common/content/dactyl.js b/common/content/dactyl.js index 8c9c7d24..2939b511 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -1278,6 +1278,21 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { } ; }); + + cache.register("help/privacy.xml", function () { + default xml namespace = NS; + + return '\n' + + +
{ + template.map(options.get("sanitizeitems").values + .sort(function (a, b) String.localeCompare(a.name, b.name)), + function ({ name, description }) + <>
{name}
{template.linkifyHelp(description, true)}
, + <>{"\n"}) + }
+
; + }); }, events: function () { events.listen(window, dactyl, "events", true); diff --git a/common/locale/en-US/privacy.xml b/common/locale/en-US/privacy.xml index ca89c756..10284abc 100644 --- a/common/locale/en-US/privacy.xml +++ b/common/locale/en-US/privacy.xml @@ -56,25 +56,7 @@ Items may be any of:

-
- -
all
All items
-
cache
Cache
-
commandline
Command-line history
-
cookies
Cookies
-
downloads
Download history
-
formdata
Saved form and search history
-
history
Browsing history
-
host
All data from the given host
-
marks
Local and URL marks
-
messages
Saved :messages
-
offlineapps
Offline website data
-
options
Options containing hostname data
-
passwords
Saved passwords
-
registers
Register values
-
sessions
Authenticated sessions
-
sitesettings
Site preferences
-
+

Items may be excluded by prefixing them with a !. The first