tor-browser

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

helpers.js (466B)


      1 export function runWebTransportBfcacheTest(params, description) {
      2  runBfcacheTest(
      3    {
      4      // due to the baseurl issue, this would try to load the scripts from
      5      // the main wpt test directory
      6      // scripts: ["/webtransport/resources/helpers.js"],
      7      openFunc: url =>
      8        window.open(
      9          url + `&prefix=${location.pathname}-${description}`,
     10          "_blank",
     11          "noopener"
     12        ),
     13      ...params,
     14    },
     15    description
     16  );
     17 }