38 const Cc = Components.classes;
39 const Ci = Components.interfaces;
40 const Cr = Components.results;
41 const Cu = Components.utils;
53 aMsg = (
"*** PRIVATEBROWSING TESTS: " + aMsg);
54 Cc[
"@mozilla.org/consoleservice;1"].getService(
Ci.nsIConsoleService).
55 logStringMessage(aMsg);
60 return Cc[
"@mozilla.org/network/io-service;1"].
66 var
dirSvc =
Cc[
"@mozilla.org/file/directory_service;1"].getService(
Ci.nsIProperties);
75 getFile:
function(prop, persistent) {
76 persistent.value =
true;
78 return dirSvc.get(
"CurProcD",
Ci.nsIFile);
81 var histFile =
dirSvc.get(
"CurProcD",
Ci.nsIFile);
82 histFile.append(
"history.dat");
85 throw Cr.NS_ERROR_FAILURE;
88 if (iid.equals(
Ci.nsIDirectoryServiceProvider) ||
89 iid.equals(
Ci.nsISupports)) {
92 throw Cr.NS_ERROR_NO_INTERFACE;
95 dirSvc.QueryInterface(
Ci.nsIDirectoryService).registerProvider(provider);
99 Cc[
"@mozilla.org/preferences-service;1"].
101 setBoolPref(
"browser.privatebrowsing.keep_current_session",
true);
116 for (let
i = 0;
i < files.length;
i++) {
118 file.append(files[
i]);
129 let
os =
Cc[
"@mozilla.org/observer-service;1"].
131 os.notifyObservers(
null,
"quit-application",
null);
137 "@mozilla.org/privatebrowsing;1",
138 "@mozilla.org/privatebrowsing-wrapper;1"
140 for (var
i = 0;
i < contractIDs.length; ++
i) {
141 PRIVATEBROWSING_CONTRACT_ID = contractIDs[
i];
const NS_APP_USER_PROFILE_50_DIR
const kPrivateBrowsingCancelVoteNotification
function shutdownPlaces()
const NS_APP_HISTORY_50_FILE
const kPrivateBrowsingTransitionCompleteNotification
sbOSDControlService prototype QueryInterface
function getFile(fileName)
Cc["@mozilla.org/preferences-service;1"] getService(Ci.nsIPrefBranch).setBoolPref("browser.privatebrowsing.keep_current_session"
function newURI(aURLString)
const kPrivateBrowsingNotification
function run_test_on_all_services()
var PRIVATEBROWSING_CONTRACT_ID
_getSelectedPageStyle s i
function run_test_on_service()