1
0
Fork 0
firefox/netwerk/test/unit_ipc/test_gio_protocol_wrap.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

21 lines
503 B
JavaScript

//
// 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(() => {
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");
});