test_gio_protocol_wrap.js (503B)
1 // 2 // Run test script in content process instead of chrome (xpcshell's default) 3 // 4 // 5 6 function run_test() { 7 Services.prefs.setCharPref( 8 "network.gio.supported-protocols", 9 "localtest:,recent:" 10 ); 11 12 do_await_remote_message("gio-allow-test-protocols").then(() => { 13 do_send_remote_message("gio-allow-test-protocols-done"); 14 }); 15 16 run_test_in_child("../unit/test_gio_protocol.js"); 17 } 18 19 registerCleanupFunction(() => { 20 Services.prefs.clearUserPref("network.gio.supported-protocols"); 21 });