tor-browser

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

perftest_http3_controlled.js (957B)


      1 // This Source Code Form is subject to the terms of the Mozilla Public
      2 // License, v. 2.0. If a copy of the MPL was not distributed with this
      3 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
      4 /* eslint-env node */
      5 
      6 /*
      7 Ensure the `--firefox.preference=network.http.http3.enable:true` is
      8 set for this test.
      9 */
     10 
     11 async function test(context, commands) {
     12  let url = context.options.browsertime.url;
     13 
     14  // Make firefox learn of HTTP/3 server
     15  // XXX: Need to build an HTTP/3-specific conditioned profile
     16  // to handle these pre-navigations.
     17  await commands.navigate(url);
     18 
     19  // Measure initial pageload
     20  await commands.measure.start("pageload");
     21  await commands.navigate(url);
     22  await commands.measure.stop();
     23  commands.measure.result[0].browserScripts.pageinfo.url = url;
     24 }
     25 
     26 module.exports = {
     27  test,
     28  owner: "Network Team",
     29  name: "controlled",
     30  description: "User-journey live site test for controlled server",
     31  tags: ["throttlable"],
     32 };