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