1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-19 23:17:58 +01:00

Integrate sanitizer with host UI, sanitize at shutdown support, and control which items are sanitized when more thoroughly. Closes issue #70.

This commit is contained in:
Kris Maglione
2010-10-14 03:29:56 -04:00
parent 9e42f55fa1
commit a703d0a3bf
18 changed files with 781 additions and 521 deletions

View File

@@ -993,8 +993,8 @@ const Tabs = Module("tabs", {
if (value == 0)
tabs.tabStyle.enabled = true;
else {
options.safeSetPref("browser.tabs.autoHide", value == 1,
"See 'showtabline' option.");
prefs.safeSet("browser.tabs.autoHide", value == 1,
"See 'showtabline' option.");
tabs.tabStyle.enabled = false;
}
@@ -1025,7 +1025,7 @@ const Tabs = Module("tabs", {
];
options.add(["activate", "act"],
"Define when tabs are automatically activated",
"stringlist", [g[0] for (g in values(activateGroups.slice(1))) if (!g[2] || !options.getPref("browser.tabs." + g[2]))].join(","),
"stringlist", [g[0] for (g in values(activateGroups.slice(1))) if (!g[2] || !prefs.get("browser.tabs." + g[2]))].join(","),
{
completer: function (context) activateGroups,
has: Option.has.toggleAll,
@@ -1033,9 +1033,9 @@ const Tabs = Module("tabs", {
let valueSet = set(newValues);
for (let group in values(activateGroups))
if (group[2])
options.safeSetPref("browser.tabs." + group[2],
!(valueSet["all"] ^ valueSet[group[0]]),
"See the 'activate' option");
prefs.safeSet("browser.tabs." + group[2],
!(valueSet["all"] ^ valueSet[group[0]]),
"See the 'activate' option");
return newValues;
}
});
@@ -1072,10 +1072,10 @@ const Tabs = Module("tabs", {
restriction = 2;
}
options.safeSetPref("browser.link.open_newwindow", open,
"See 'popups' option.");
options.safeSetPref("browser.link.open_newwindow.restriction", restriction,
"See 'popups' option.");
prefs.safeSet("browser.link.open_newwindow", open,
"See 'popups' option.");
prefs.safeSet("browser.link.open_newwindow.restriction", restriction,
"See 'popups' option.");
return values;
},
completer: function (context) [