tor-browser

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

browser_target_remote.js (392B)


      1 /* Any copyright is dedicated to the Public Domain.
      2 * http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 // Ensure target is closed if client is closed directly
      5 function test() {
      6  waitForExplicitFinish();
      7 
      8  getParentProcessActors((client, target) => {
      9    target.on("target-destroyed", () => {
     10      ok(true, "Target was destroyed");
     11      finish();
     12    });
     13    client.close();
     14  });
     15 }