1 Services.prefs.setBoolPref("privacy.resistFingerprinting", true);
2 registerCleanupFunction(() => {
3 Services.prefs.clearUserPref("privacy.resistFingerprinting");
6 add_task(function test_sandbox_rfp() {
7 var sb = Cu.Sandbox('http://example.com');
8 var date = Cu.evalInSandbox('Date.now()', sb);
9 ok(date > 1672553000000, "Date.now() works with resistFingerprinting");
12 add_task(function test_sandbox_system() {
13 var sb = Cu.Sandbox(Services.scriptSecurityManager.getSystemPrincipal());
14 var date = Cu.evalInSandbox('Date.now()', sb);
15 ok(date > 1672553000000, "Date.now() works with systemprincipal");