3 Cc[
"@mozilla.org/moz/jssubscript-loader;1"].getService(
Ci.mozIJSSubScriptLoader)
4 .loadSubScript(
"chrome://browser/content/sanitize.js");
9 var pm =
Cc[
"@mozilla.org/permissionmanager;1"]
10 .getService(
Ci.nsIPermissionManager);
11 pm.add(
makeURI(
"http://example.com"),
"testing", pm.ALLOW_ACTION);
14 ok(pm.enumerator.hasMoreElements(),
"Permission manager should have elements, since we just added one");
18 s.ignoreTimespan =
false;
19 s.prefDomain =
"privacy.cpd.";
21 itemPrefs.setBoolPref(
"history",
false);
22 itemPrefs.setBoolPref(
"downloads",
false);
23 itemPrefs.setBoolPref(
"cache",
false);
24 itemPrefs.setBoolPref(
"cookies",
false);
25 itemPrefs.setBoolPref(
"formdata",
false);
26 itemPrefs.setBoolPref(
"offlineApps",
false);
27 itemPrefs.setBoolPref(
"passwords",
false);
28 itemPrefs.setBoolPref(
"sessions",
false);
29 itemPrefs.setBoolPref(
"siteSettings",
true);
35 ok(!pm.enumerator.hasMoreElements(),
"Permission manager shouldn't have entries after Sanitizing");
function makeURI(aURLSpec, aCharset)