tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_http3_prio_enabled_wrap.js (773B)


      1 //
      2 // Run test script in content process instead of chrome (xpcshell's default)
      3 //
      4 
      5 registerCleanupFunction(async () => {
      6  Services.prefs.clearUserPref("network.http.http3.priority");
      7  Services.prefs.clearUserPref("network.http.priority_header.enabled");
      8  http3_clear_prefs();
      9 });
     10 
     11 // setup will be called before the child process tests
     12 add_task(async function setup() {
     13  await http3_setup_tests("h3");
     14 });
     15 
     16 async function run_test() {
     17  // test priority urgency and incremental with priority enabled
     18  Services.prefs.setBoolPref("network.http.http3.priority", true);
     19  Services.prefs.setBoolPref("network.http.priority_header.enabled", true);
     20  run_test_in_child("../unit/test_http3_prio_enabled.js");
     21  run_next_test(); // only pumps next async task from this file
     22 }