sanitize.js File Reference

Go to the source code of this file.

Functions

function Sanitizer ()
 
Sanitizer __defineGetter__ ("prefs", function(){return Sanitizer._prefs?Sanitizer._prefs:Sanitizer._prefs=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(Sanitizer.prefDomain);})
 

Variables

Sanitizer prototype
 
Sanitizer prefDomain = "privacy.sanitize."
 
Sanitizer prefShutdown = "sanitizeOnShutdown"
 
Sanitizer prefDidShutdown = "didShutdownSanitize"
 
Sanitizer TIMESPAN_EVERYTHING = 0
 
Sanitizer TIMESPAN_HOUR = 1
 
Sanitizer TIMESPAN_2HOURS = 2
 
Sanitizer TIMESPAN_4HOURS = 3
 
Sanitizer TIMESPAN_TODAY = 4
 
Sanitizer getClearRange
 
Sanitizer _prefs = null
 
Sanitizer showUI
 
Sanitizer sanitize
 
Sanitizer onStartup
 
Sanitizer onShutdown
 
Sanitizer _checkAndSanitize
 

Function Documentation

Sanitizer __defineGetter__ ( "Application"  ,
function(){delete Application;Application=Cc["@mozilla.org/fuel/application;1"].getService(Ci.fuelIApplication);return Application;}   
)

Construct a column spec parser and read the column specification immediately

Parameters
aMediaListThe media list to find columns to display for
aPlaylistthe playlist binding
aMaska bitfield containing the source to look for; see the ColumnSpecParser.ORIGIN_* constants
[optional]aConstraint the media type constraint to use, if any
function Sanitizer ( )

Definition at line 42 of file sanitize.js.

Here is the caller graph for this function:

Variable Documentation

Sanitizer _checkAndSanitize
Initial value:
= function()
{
const prefs = Sanitizer.prefs;
if (prefs.getBoolPref(Sanitizer.prefShutdown) &&
!prefs.prefHasUserValue(Sanitizer.prefDidShutdown)) {
var s = new Sanitizer();
s.prefDomain = "privacy.clearOnShutdown.";
s.sanitize() ||
prefs.setBoolPref(Sanitizer.prefDidShutdown, true);
}
}
var prefs
Definition: FeedWriter.js:1169
function Sanitizer()
Definition: sanitize.js:42

Definition at line 482 of file sanitize.js.

Sanitizer _prefs = null

Definition at line 435 of file sanitize.js.

Sanitizer getClearRange
Initial value:
= function (ts) {
if (ts === undefined)
ts = Sanitizer.prefs.getIntPref("timeSpan");
if (ts === Sanitizer.TIMESPAN_EVERYTHING)
return null;
var endDate = Date.now() * 1000;
switch (ts) {
case Sanitizer.TIMESPAN_HOUR :
var startDate = endDate - 3600000000;
break;
case Sanitizer.TIMESPAN_2HOURS :
startDate = endDate - 7200000000;
break;
case Sanitizer.TIMESPAN_4HOURS :
startDate = endDate - 14400000000;
break;
case Sanitizer.TIMESPAN_TODAY :
var d = new Date();
d.setHours(0);
d.setMinutes(0);
d.setSeconds(0);
startDate = d.valueOf() * 1000;
break;
default:
throw "Invalid time span for clear private data: " + ts;
}
return [startDate, endDate];
}
function d(s)
return null
Definition: FeedWriter.js:1143
_setDateDatepicker endDate
function Sanitizer()
Definition: sanitize.js:42

Definition at line 404 of file sanitize.js.

Sanitizer onShutdown
Initial value:
= function()
{
Sanitizer._checkAndSanitize();
}
function Sanitizer()
Definition: sanitize.js:42

Definition at line 475 of file sanitize.js.

Sanitizer onStartup
Initial value:
= function()
{
Sanitizer._checkAndSanitize();
}
function Sanitizer()
Definition: sanitize.js:42

Definition at line 469 of file sanitize.js.

Sanitizer prefDidShutdown = "didShutdownSanitize"

Definition at line 390 of file sanitize.js.

Sanitizer prefDomain = "privacy.sanitize."

Definition at line 388 of file sanitize.js.

Sanitizer prefShutdown = "sanitizeOnShutdown"

Definition at line 389 of file sanitize.js.

Sanitizer prototype

Definition at line 43 of file sanitize.js.

Sanitizer sanitize
Initial value:
= function(aParentWindow)
{
Sanitizer.showUI(aParentWindow);
}
function Sanitizer()
Definition: sanitize.js:42

Deletes privacy sensitive data in a batch, optionally showing the sanitize UI, according to user preferences

Definition at line 464 of file sanitize.js.

Sanitizer showUI
Initial value:
= function(aParentWindow)
{
var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
.getService(Components.interfaces.nsIWindowWatcher);
ww.openWindow(aParentWindow,
"chrome://browser/content/sanitize.xul",
"Sanitize",
"chrome,titlebar,dialog,centerscreen,modal",
null);
}
return null
Definition: FeedWriter.js:1143

Definition at line 445 of file sanitize.js.

Sanitizer TIMESPAN_2HOURS = 2

Definition at line 396 of file sanitize.js.

Sanitizer TIMESPAN_4HOURS = 3

Definition at line 397 of file sanitize.js.

Sanitizer TIMESPAN_EVERYTHING = 0

Definition at line 394 of file sanitize.js.

Sanitizer TIMESPAN_HOUR = 1

Definition at line 395 of file sanitize.js.

Sanitizer TIMESPAN_TODAY = 4

Definition at line 398 of file sanitize.js.