tor-browser

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

test_geolocation_timeout_wrap.js (459B)


      1 const { HttpServer } = ChromeUtils.importESModule(
      2  "resource://testing-common/httpd.sys.mjs"
      3 );
      4 
      5 var httpserver = null;
      6 
      7 function run_test() {
      8  Services.prefs.setBoolPref("geo.provider.network.scan", false);
      9 
     10  httpserver = new HttpServer();
     11  httpserver.start(-1);
     12  Services.prefs.setCharPref(
     13    "geo.provider.network.url",
     14    "http://localhost:" + httpserver.identity.primaryPort + "/geo"
     15  );
     16  run_test_in_child("./test_geolocation_timeout.js");
     17 }