mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-04 20:15:46 +01:00
Whitespace fixes.
--HG-- extra : rebase_source : 751d7904f8054e889abbd2590b45a8853dc659ee
This commit is contained in:
@@ -141,7 +141,7 @@ const Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakR
|
|||||||
]),
|
]),
|
||||||
init: function init(win) {
|
init: function init(win) {
|
||||||
let pane = win.document.getElementById("SanitizeDialogPane");
|
let pane = win.document.getElementById("SanitizeDialogPane");
|
||||||
for (let [,pref] in iter(pane.preferences))
|
for (let [, pref] in iter(pane.preferences))
|
||||||
pref.updateElements();
|
pref.updateElements();
|
||||||
init.superapply(this, arguments);
|
init.superapply(this, arguments);
|
||||||
}
|
}
|
||||||
@@ -158,9 +158,9 @@ const Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakR
|
|||||||
<columns><column flex="1"/><column flex="1"/></columns>
|
<columns><column flex="1"/><column flex="1"/></columns>
|
||||||
<rows>{
|
<rows>{
|
||||||
let (items = ourItems(true))
|
let (items = ourItems(true))
|
||||||
template.map(util.range(0, Math.ceil(items.length/2)), function (i)
|
template.map(util.range(0, Math.ceil(items.length / 2)), function (i)
|
||||||
<row xmlns={XUL}>{
|
<row xmlns={XUL}>{
|
||||||
template.map(items.slice(i*2, i*2+2), function (item)
|
template.map(items.slice(i * 2, i * 2 + 2), function (item)
|
||||||
<checkbox xmlns={XUL} label={item.description} preference={branch + item.name}/>)
|
<checkbox xmlns={XUL} label={item.description} preference={branch + item.name}/>)
|
||||||
}</row>)
|
}</row>)
|
||||||
}</rows>
|
}</rows>
|
||||||
@@ -431,7 +431,6 @@ const Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakR
|
|||||||
privateData: true
|
privateData: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
function getPerms(host) {
|
function getPerms(host) {
|
||||||
let uri = util.createURI(host);
|
let uri = util.createURI(host);
|
||||||
if (uri)
|
if (uri)
|
||||||
@@ -451,7 +450,7 @@ const Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakR
|
|||||||
if (!args.length)
|
if (!args.length)
|
||||||
args = modules.options["cookies"];
|
args = modules.options["cookies"];
|
||||||
|
|
||||||
for (let [,cmd] in Iterator(args))
|
for (let [, cmd] in Iterator(args))
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case "clear":
|
case "clear":
|
||||||
for (let c in Sanitizer.iterCookies(host))
|
for (let c in Sanitizer.iterCookies(host))
|
||||||
@@ -586,11 +585,11 @@ const Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakR
|
|||||||
validator: function (value) /^(a(ll)?|s(ession)|\d+[mhdw])$/.test(value)
|
validator: function (value) /^(a(ll)?|s(ession)|\d+[mhdw])$/.test(value)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
options.add(["cookies", "ck"],
|
options.add(["cookies", "ck"],
|
||||||
"The default mode for newly added cookie permissions",
|
"The default mode for newly added cookie permissions",
|
||||||
"stringlist", "session",
|
"stringlist", "session",
|
||||||
{ completer: function (context) iter(Sanitizer.COMMANDS) });
|
{ completer: function (context) iter(Sanitizer.COMMANDS) });
|
||||||
|
|
||||||
options.add(["cookieaccept", "ca"],
|
options.add(["cookieaccept", "ca"],
|
||||||
"When to accept cookies",
|
"When to accept cookies",
|
||||||
"string", "all",
|
"string", "all",
|
||||||
@@ -609,6 +608,7 @@ const Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakR
|
|||||||
initialValue: true,
|
initialValue: true,
|
||||||
persist: false
|
persist: false
|
||||||
});
|
});
|
||||||
|
|
||||||
options.add(["cookielifetime", "cl"],
|
options.add(["cookielifetime", "cl"],
|
||||||
"The lifetime for which to accept cookies",
|
"The lifetime for which to accept cookies",
|
||||||
"string", "default", {
|
"string", "default", {
|
||||||
|
|||||||
Reference in New Issue
Block a user