tor-browser

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

browser_net_decode-params.js (964B)


      1 /* Any copyright is dedicated to the Public Domain.
      2   http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 "use strict";
      5 
      6 /**
      7 * Tests if "+" is replaces with spaces in the headers panel.
      8 */
      9 add_task(async function () {
     10  const { tab, monitor } = await initNetMonitor(POST_RAW_URL_WITH_HASH, {
     11    requestCount: 1,
     12  });
     13  info("Starting test... ");
     14 
     15  const { document, store, windowRequire } = monitor.panelWin;
     16  const Actions = windowRequire("devtools/client/netmonitor/src/actions/index");
     17  store.dispatch(Actions.batchEnable(false));
     18 
     19  // Execute request.
     20  await performRequests(monitor, tab, 1);
     21 
     22  // Wait until the tab panel summary is displayed
     23  const wait = waitUntil(
     24    () => document.querySelectorAll(".tabpanel-summary-label")[0]
     25  );
     26  EventUtils.sendMouseEvent(
     27    { type: "mousedown" },
     28    document.querySelectorAll(".request-list-item")[0]
     29  );
     30  await wait;
     31 
     32  clickOnSidebarTab(document, "request");
     33 
     34  return teardown(monitor);
     35 });