4 Cc[
"@mozilla.org/moz/jssubscript-loader;1"].getService(
Ci.mozIJSSubScriptLoader)
5 .loadSubScript(
"chrome://browser/content/sanitize.js");
9 var pwmgr =
Cc[
"@mozilla.org/login-manager;1"].getService(
Ci.nsILoginManager);
12 pwmgr.setLoginSavingEnabled(
"http://example.com",
false);
15 is(pwmgr.getLoginSavingEnabled(
"http://example.com"),
false,
16 "example.com should be disabled for password saving since we haven't cleared that yet.");
20 s.ignoreTimespan =
false;
21 s.prefDomain =
"privacy.cpd.";
23 itemPrefs.setBoolPref(
"history",
false);
24 itemPrefs.setBoolPref(
"downloads",
false);
25 itemPrefs.setBoolPref(
"cache",
false);
26 itemPrefs.setBoolPref(
"cookies",
false);
27 itemPrefs.setBoolPref(
"formdata",
false);
28 itemPrefs.setBoolPref(
"offlineApps",
false);
29 itemPrefs.setBoolPref(
"passwords",
false);
30 itemPrefs.setBoolPref(
"sessions",
false);
31 itemPrefs.setBoolPref(
"siteSettings",
true);
37 is(pwmgr.getLoginSavingEnabled(
"http://example.com"),
true,
38 "example.com should be enabled for password saving again now that we've cleared.");