mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-28 12:55:45 +01:00
Merge default.
--HG-- branch : key-processing
This commit is contained in:
@@ -198,6 +198,7 @@
|
|||||||
<dt>downloads </dt> <dd>Download history</dd>
|
<dt>downloads </dt> <dd>Download history</dd>
|
||||||
<dt>formdata </dt> <dd>Saved form and search history</dd>
|
<dt>formdata </dt> <dd>Saved form and search history</dd>
|
||||||
<dt>history </dt> <dd>Browsing history</dd>
|
<dt>history </dt> <dd>Browsing history</dd>
|
||||||
|
<dt>host </dt> <dd>All data from the given host</dd>
|
||||||
<dt>marks </dt> <dd>Local and URL marks</dd>
|
<dt>marks </dt> <dd>Local and URL marks</dd>
|
||||||
<dt>macros </dt> <dd>Saved macros</dd>
|
<dt>macros </dt> <dd>Saved macros</dd>
|
||||||
<dt>messages </dt> <dd>Saved <ex>:messages</ex></dd>
|
<dt>messages </dt> <dd>Saved <ex>:messages</ex></dd>
|
||||||
@@ -225,27 +226,27 @@
|
|||||||
|
|
||||||
<note>
|
<note>
|
||||||
The following items are always cleared entirely, regardless of
|
The following items are always cleared entirely, regardless of
|
||||||
<a>timeframe</a>: <em>cache</em>, <em>offlineapps</em>,
|
<a>timeframe</a>: <em>cache</em>, <em>host</em>, <em>offlineapps</em>,
|
||||||
<em>passwords</em>, <em>sessions</em>, <em>sitesettings</em>.
|
<em>passwords</em>, <em>sessions</em>, <em>sitesettings</em>.
|
||||||
Conversely, <em>options</em> are never cleared unless a host is
|
Conversely, <em>host</em> and <em>options</em> are never cleared
|
||||||
specified.
|
unless a host is specified.
|
||||||
</note>
|
</note>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
If <a>host</a> (short name <em>-h</em>) is specified, only items
|
If <a>host</a> (short name <em>-h</em>) is specified, only items
|
||||||
containing a reference to that domain or a subdomain thereof are
|
containing a reference to that domain or a subdomain thereof are
|
||||||
cleared. Moreover, if <em>commandline</em> or <em>history</em> is
|
cleared. Moreover, if either of <em>commandline</em> or
|
||||||
specified, the invocation of the <em>:sanitize</em> command is
|
<em>history</em> is specified, the invocation of the
|
||||||
naturally cleared as well.
|
<em>:sanitize</em> command is naturally cleared as well.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<note>
|
<note>
|
||||||
This only applies to <em>commandline</em>, <em>cookies</em>,
|
This only applies to <em>commandline</em>, <em>cookies</em>,
|
||||||
<em>history</em>, <em>marks</em>, <em>messages</em>,
|
<em>history</em>, <em>marks</em>, <em>messages</em>,
|
||||||
<em>options</em>, and <em>sitesettings</em>. All other
|
<em>options</em>, and <em>sitesettings</em>. All other
|
||||||
domain-specific data is cleared only along with <em>history</em>,
|
domain-specific data is cleared only along with <em>host</em>,
|
||||||
when a request is made to &dactyl.host; to purge all data for
|
when a request is made to &dactyl.host; to purge all data for
|
||||||
<em>host</em>. Included in this purge are all matching history
|
<a>host</a>. Included in this purge are all matching history
|
||||||
entries, cookies, closed tabs, form data, and location bar
|
entries, cookies, closed tabs, form data, and location bar
|
||||||
entries.
|
entries.
|
||||||
</note>
|
</note>
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
io.pathSearch("hg")) {
|
io.pathSearch("hg")) {
|
||||||
return io.system(["hg", "-R", uri.file.parent.path,
|
return io.system(["hg", "-R", uri.file.parent.path,
|
||||||
"log", "-r.",
|
"log", "-r.",
|
||||||
"--template=hg{rev} ({date|isodate})"]);
|
"--template=hg{rev} ({date|isodate})"]).output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let version = this.addon.version;
|
let version = this.addon.version;
|
||||||
|
|||||||
@@ -436,7 +436,7 @@ var IO = Module("io", {
|
|||||||
*
|
*
|
||||||
* @param {string} command The command to run.
|
* @param {string} command The command to run.
|
||||||
* @param {string} input Any input to be provided to the command on stdin.
|
* @param {string} input Any input to be provided to the command on stdin.
|
||||||
* @returns {string}
|
* @returns {object}
|
||||||
*/
|
*/
|
||||||
system: function (command, input) {
|
system: function (command, input) {
|
||||||
util.dactyl.echomsg("Calling shell to execute: " + command, 4);
|
util.dactyl.echomsg("Calling shell to execute: " + command, 4);
|
||||||
@@ -472,7 +472,8 @@ var IO = Module("io", {
|
|||||||
__noSuchMethod__: function (meth, args) this.output[meth].apply(this.output, args),
|
__noSuchMethod__: function (meth, args) this.output[meth].apply(this.output, args),
|
||||||
valueOf: function () this.output,
|
valueOf: function () this.output,
|
||||||
output: stdout.read().replace(/^(.*)\n$/, "$1"),
|
output: stdout.read().replace(/^(.*)\n$/, "$1"),
|
||||||
returnValue: res
|
returnValue: res,
|
||||||
|
toString: function () this.output
|
||||||
};
|
};
|
||||||
}) || "";
|
}) || "";
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -78,7 +78,6 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef
|
|||||||
this.addItem("cache", { builtin: true, description: "Cache" });
|
this.addItem("cache", { builtin: true, description: "Cache" });
|
||||||
this.addItem("downloads", { builtin: true, description: "Download history" });
|
this.addItem("downloads", { builtin: true, description: "Download history" });
|
||||||
this.addItem("formdata", { builtin: true, description: "Saved form and search history" });
|
this.addItem("formdata", { builtin: true, description: "Saved form and search history" });
|
||||||
this.addItem("history", { builtin: true, description: "Browsing history", sessionHistory: true });
|
|
||||||
this.addItem("offlineapps", { builtin: true, description: "Offline website data" });
|
this.addItem("offlineapps", { builtin: true, description: "Offline website data" });
|
||||||
this.addItem("passwords", { builtin: true, description: "Saved passwords" });
|
this.addItem("passwords", { builtin: true, description: "Saved passwords" });
|
||||||
this.addItem("sessions", { builtin: true, description: "Authenticated sessions" });
|
this.addItem("sessions", { builtin: true, description: "Authenticated sessions" });
|
||||||
@@ -96,6 +95,32 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef
|
|||||||
},
|
},
|
||||||
override: true
|
override: true
|
||||||
});
|
});
|
||||||
|
this.addItem("history", {
|
||||||
|
builtin: true,
|
||||||
|
description: "Browsing history",
|
||||||
|
persistent: true,
|
||||||
|
sessionHistory: true,
|
||||||
|
action: function (range, host) {
|
||||||
|
if (host)
|
||||||
|
services.history.removePagesFromHost(host, true);
|
||||||
|
else
|
||||||
|
services.history.removeVisitsByTimeframe(this.range.min, this.range.max);
|
||||||
|
|
||||||
|
if (!host)
|
||||||
|
services.observer.notifyObservers(null, "browser:purge-session-history", "");
|
||||||
|
|
||||||
|
if (!host || util.isDomainURL(prefs.get("general.open_location.last_url"), host))
|
||||||
|
prefs.reset("general.open_location.last_url");
|
||||||
|
},
|
||||||
|
override: true
|
||||||
|
});
|
||||||
|
this.addItem("host", {
|
||||||
|
description: "All data from the given host",
|
||||||
|
action: function (range, host) {
|
||||||
|
if (host)
|
||||||
|
services.privateBrowsing.removeDataFromDomain(host);
|
||||||
|
}
|
||||||
|
});
|
||||||
this.addItem("sitesettings", {
|
this.addItem("sitesettings", {
|
||||||
builtin: true,
|
builtin: true,
|
||||||
description: "Site preferences",
|
description: "Site preferences",
|
||||||
@@ -398,8 +423,6 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef
|
|||||||
if (args["-host"]) {
|
if (args["-host"]) {
|
||||||
args["-host"].forEach(function (host) {
|
args["-host"].forEach(function (host) {
|
||||||
sanitizer.sanitizing = true;
|
sanitizer.sanitizing = true;
|
||||||
if (items.indexOf("history") > -1)
|
|
||||||
services.privateBrowsing.removeDataFromDomain(host);
|
|
||||||
sanitizer.sanitizeItems(items, range, host)
|
sanitizer.sanitizeItems(items, range, host)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user