test_initial_prefs.js (375B)
1 function isParentProcess() { 2 return Services.appinfo.processType == Ci.nsIXULRuntime.PROCESS_TYPE_DEFAULT; 3 } 4 5 function run_test() { 6 if (!isParentProcess()) { 7 const pb = Services.prefs; 8 pb.setBoolPref("Test.IPC.bool", true); 9 pb.setIntPref("Test.IPC.int", 23); 10 pb.setCharPref("Test.IPC.char", "hey"); 11 12 run_test_in_child("test_existing_prefs.js"); 13 } 14 }