tor-browser

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

test_http3_prio_disabled_wrap.js (862B)


      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 function run_test() {
     12  // test priority urgency and incremental with priority disabled
     13  Services.prefs.setBoolPref("network.http.http3.priority", false);
     14  Services.prefs.setBoolPref("network.http.priority_header.enabled", false);
     15 
     16  do_test_pending();
     17  http3_setup_tests("h3", true)
     18    .then(() => {
     19      run_test_in_child("../unit/test_http3_prio_disabled.js");
     20      run_next_test(); // only pumps next async task from this file
     21      do_test_finished();
     22    })
     23    .catch(e => {
     24      Assert.ok(false, "unexpected exception:" + e);
     25      do_test_finished();
     26    });
     27 }