do_test_removeDataFromDomain_activeDownloads.js File Reference

Go to the source code of this file.

Functions

function uri (aFile)
 
function check_active_download (aURIString, aIsActive)
 
destFile append ("dm-test-file")
 
function do_test ()
 

Variables

let pb
 
let destFile = dirSvc.get("TmpD", Ci.nsIFile)
 
let data
 

Function Documentation

destFile append ( "dm-test-file )
function check_active_download (   aURIString,
  aIsActive 
)

Checks to ensure a URI string is in download history or not.

Parameters
aURIStringThe string of the URI to check.
aIsActiveTrue if the URI should be actively downloaded, false otherwise.

Definition at line 76 of file do_test_removeDataFromDomain_activeDownloads.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function do_test ( )

Definition at line 112 of file do_test_removeDataFromDomain_activeDownloads.js.

Here is the call graph for this function:

function uri (   aFile)

Creates an nsIURI object for the given file.

Parameters
aFileThe nsIFile of the URI to create.
Returns
an nsIURI representing aFile.

Definition at line 61 of file do_test_removeDataFromDomain_activeDownloads.js.

Here is the call graph for this function:

Variable Documentation

let data
Initial value:
= [
{ source: "http://mozilla.org/direct_match",
removed: true
},
{ source: "http://www.mozilla.org/subdomain",
removed: true
},
{ source: "http://ilovemozilla.org/contains_domain",
removed: false
},
]

Definition at line 97 of file do_test_removeDataFromDomain_activeDownloads.js.

destFile = dirSvc.get("TmpD", Ci.nsIFile)
let pb
Initial value:
getService(Ci.nsIPrivateBrowsingService)
const Cc
getService(Ci.sbIFaceplateManager)
const Ci
var PRIVATEBROWSING_CONTRACT_ID

Test added with bug 460086 to test the behavior of the new API that was added to remove all traces of visiting a site.

Definition at line 48 of file do_test_removeDataFromDomain_activeDownloads.js.