nsPrivateBrowsingService.js File Reference

Go to the source code of this file.

Functions

Components utils import ("resource://gre/modules/XPCOMUtils.jsm")
 
function PrivateBrowsingService ()
 
function NSGetModule (compMgr, fileSpec) XPCOMUtils.generateModule([PrivateBrowsingService])
 

Variables

String prototype hasRootDomain
 
const Ci = Components.interfaces
 
const Cu = Components.utils
 
const Cr = Components.results
 
const STATE_IDLE = 0
 
const STATE_TRANSITION_STARTED = 1
 
const STATE_WAITING_FOR_RESTORE = 2
 
const STATE_RESTORE_FINISHED = 3
 
PrivateBrowsingService prototype
 

Function Documentation

Components utils import ( "resource://gre/modules/XPCOMUtils.jsm"  )
function NSGetModule ( compMgr  ,
fileSpec   
)

/brief XPCOM initialization code

Definition at line 470 of file sbAddonMetadata.js.

function PrivateBrowsingService ( )

Definition at line 85 of file nsPrivateBrowsingService.js.

Variable Documentation

Definition at line 73 of file nsPrivateBrowsingService.js.

const Cr = Components.results

Definition at line 75 of file nsPrivateBrowsingService.js.

const Cu = Components.utils

Definition at line 74 of file nsPrivateBrowsingService.js.

String prototype hasRootDomain
Initial value:
= function hasRootDomain(aDomain)
{
let index = this.indexOf(aDomain);
if (index == -1)
return false;
if (this == aDomain)
return true;
let prevChar = this[index - 1];
return (index == (this.length - aDomain.length)) &&
(prevChar == "." || prevChar == "/");
}
const Cc = Components.classes
const Cc
return elem filter &&elem filter indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity
String prototype hasRootDomain

Returns true if the string passed in is part of the root domain of the current string. For example, if this is "www.mozilla.org", and we pass in "mozilla.org", this will return true. It would return false the other way around.

Definition at line 50 of file nsPrivateBrowsingService.js.

Definition at line 93 of file nsPrivateBrowsingService.js.

const STATE_IDLE = 0

Definition at line 77 of file nsPrivateBrowsingService.js.

const STATE_RESTORE_FINISHED = 3

Definition at line 80 of file nsPrivateBrowsingService.js.

const STATE_TRANSITION_STARTED = 1

Definition at line 78 of file nsPrivateBrowsingService.js.

const STATE_WAITING_FOR_RESTORE = 2

Definition at line 79 of file nsPrivateBrowsingService.js.