63 return Cc[
"@mozilla.org/network/io-service;1"].
78 let
dm =
Cc[
"@mozilla.org/download-manager;1"].
80 let enumerator = dm.activeDownloads;
82 while (enumerator.hasMoreElements()) {
83 let dl = enumerator.getNext().QueryInterface(
Ci.nsIDownload);
84 if (dl.source.spec == aURIString)
87 let checker = aIsActive ? do_check_true : do_check_false;
98 { source:
"http://mozilla.org/direct_match",
102 { source:
"http://www.mozilla.org/subdomain",
106 { source:
"http://ilovemozilla.org/contains_domain",
119 let downloads = do_get_file(
"downloads.empty.sqlite");
120 downloads.copyTo(
dirSvc.get(
"ProfD",
Ci.nsIFile),
"downloads.sqlite");
123 let ss =
Cc[
"@mozilla.org/storage/service;1"].
126 file.append(
"downloads.sqlite");
127 let db = ss.openDatabase(file);
130 let stmt = db.createStatement(
131 "INSERT INTO moz_downloads (source, target, state, autoResume, entityID) " +
132 "VALUES (:source, :target, :state, :autoResume, :entityID)"
134 for (let
i = 0;
i < data.length;
i++) {
135 stmt.params.source = data[
i].source;
136 stmt.params.target = data[
i].target;
137 stmt.params.state =
Ci.nsIDownloadManager.DOWNLOAD_PAUSED;
138 stmt.params.autoResume = 0;
139 stmt.params.entityID =
"foo"
149 for (let
i = 0;
i < data.length;
i++)
153 pb.removeDataFromDomain(
"mozilla.org");
156 for (let
i = 0;
i < data.length;
i++)
function shutdownPlaces()
getService(Ci.sbIFaceplateManager)
function newFileURI(file)
var PRIVATEBROWSING_CONTRACT_ID
_getSelectedPageStyle s i
function check_active_download(aURIString, aIsActive)