mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-24 20:43:33 +01:00
Add missing name and expiry info to :cookies list.
This commit is contained in:
@@ -497,10 +497,13 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef
|
|||||||
|
|
||||||
case "list":
|
case "list":
|
||||||
modules.commandline.commandOutput(template.tabular(
|
modules.commandline.commandOutput(template.tabular(
|
||||||
["Host", "Session", "Path", "Value"], ["padding-right: 1em", "padding-right: 1em", "padding-right: 1em"],
|
["Host", "Expiry (UTC)", "Path", "Name", "Value"],
|
||||||
|
["padding-right: 1em", "padding-right: 1em", "padding-right: 1em", "max-width: 12em; overflow: hidden;", "padding-left: 1ex;"],
|
||||||
([c.host,
|
([c.host,
|
||||||
<span highlight={c.isSession ? "Enabled" : "Disabled"}>{c.isSession ? "session" : "persistent"}</span>,
|
c.isSession ? <span highlight="Enabled">session</span>
|
||||||
|
: (new Date(c.expiry * 1000).toJSON() || "Never").replace(/:\d\d\.000Z/, "").replace("T", " ").replace(/-/g, "/"),
|
||||||
c.path,
|
c.path,
|
||||||
|
c.name,
|
||||||
c.value]
|
c.value]
|
||||||
for (c in Sanitizer.iterCookies(host)))));
|
for (c in Sanitizer.iterCookies(host)))));
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user