1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 08:22:28 +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

@@ -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"],