1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-09 16:34:12 +01:00

Add 'private' for entering private browsing mode. (Gary Katsevman)

This commit is contained in:
Doug Kearns
2009-06-28 16:42:32 +10:00
parent d81ea622e8
commit 63925afb03
5 changed files with 39 additions and 0 deletions

View File

@@ -40,3 +40,4 @@ Patches (in no special order):
* Dan Boger (:set online support)
* Štěpán Němec (help copy-editing and favicon support)
* Jarkko Oranen ('maxitems' option)
* Gary Katsevman ('private' option)

View File

@@ -13,6 +13,9 @@
{ arg: true, count: true, motion: true, route: true });
* IMPORTANT: shifted key notation now matches Vim's behaviour. E.g. <C-a>
and <C-A> are equivalent, to map the uppercase character use <C-S-A>. - Is this still true, or going to be true? --djk
* add 'private' - enter private browsing mode IMPORTANT: this doesn't
currently cause Vimperator-specific data like command-line history to be
purged.
* add -description option to :command
* command-line options are now supported via the host application's
-liberator option

View File

@@ -477,6 +477,25 @@ const config = { //{{{
getter: function () !services.get("io").offline
});
// only available in FF 3.5
if (Ci.nsIPrivateBrowsingService)
{
services.add("privateBrowsing", "@mozilla.org/privatebrowsing;1", Ci.nsIPrivateBrowsingService);
options.add(["private", "pornmode"],
"Set the 'private browsing' option",
"boolean", false,
{
setter: function (value)
{
return services.get("privateBrowsing").privateBrowsingEnabled = value;
},
getter: function ()
{
return services.get("privateBrowsing").privateBrowsingEnabled;
}
});
}
// TODO: merge with Vimperator version and add Muttator version
// (TB handles this differently).
options.add(["titlestring"],

View File

@@ -304,6 +304,7 @@ section:Options[option-index]
||'pageinfo'|| Desired info on [c]:pa[geinfo][c] +
||'popups'|| Where to show requested popup windows +
||'previouspattern'|| Patterns to use when guessing the \'previous' page in a document sequence +
||'private'|| Set the 'private browsing' option +
||'runtimepath'|| List of directories searched for runtime files +
||'scroll'|| Number of lines to scroll with [m]<C-u>[m] and [m]<C-d>[m] commands +
||'shell'|| Shell to use for executing [c]:![c] and [c]:run[c] commands +

View File

@@ -445,6 +445,21 @@ Number of Ex commands and search patterns to store in the command-line history.
____
|\'noprivate'| |\'private'|
||'private'|| boolean (default: off)
____
Set the 'private browsing' option. In private browsing mode history, cache
files, cookies, form data, passwords, and download list entries are available
only for the duration of the private browsing session and deleted when
returning to normal browsing mode.
Warning: Vimperator specific data like command-line history is not yet purged
when exiting private browsing mode.
Note: this is only available in FF 3.5.
____
|\'nohls'| |\'nohlsearch'| |\'hls'| |\'hlsearch'|
||'hlsearch' 'hls'|| boolean (default: off)
____