tor-browser

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

make_unsetLastAccessTime.js (620B)


      1 /*
      2  Any copyright is dedicated to the Public Domain.
      3  http://creativecommons.org/publicdomain/zero/1.0/
      4 */
      5 
      6 async function testSteps() {
      7  const originDirPath = "storage/default/https+++foo.example.com";
      8 
      9  info("Initializing");
     10 
     11  let request = init();
     12  await requestFinished(request);
     13 
     14  info("Creating an empty origin directory");
     15 
     16  let originDir = getRelativeFile(originDirPath);
     17  originDir.create(Ci.nsIFile.DIRECTORY_TYPE, parseInt("0755", 8));
     18 
     19  info("Initializing temporary storage");
     20 
     21  request = initTemporaryStorage();
     22  await requestFinished(request);
     23 
     24  // The metadata file should be now restored.
     25 }