[tbb-commits] [tor-browser] branch tor-browser-102.3.0esr-12.0-2 updated: fixup! Bug 40933: Add tor-launcher functionality

gitolite role git at cupani.torproject.org
Tue Oct 18 16:01:31 UTC 2022


This is an automated email from the git hooks/post-receive script.

pierov pushed a commit to branch tor-browser-102.3.0esr-12.0-2
in repository tor-browser.

The following commit(s) were added to refs/heads/tor-browser-102.3.0esr-12.0-2 by this push:
     new 8e55eb5a9baa fixup! Bug 40933: Add tor-launcher functionality
8e55eb5a9baa is described below

commit 8e55eb5a9baaa8f9a81ef6592159bea3decb940d
Author: Pier Angelo Vendrame <pierov at torproject.org>
AuthorDate: Tue Oct 18 17:08:33 2022 +0200

    fixup! Bug 40933: Add tor-launcher functionality
    
    Bug 41376: Replace all / with \ on Windows in TorFile
---
 toolkit/components/tor-launcher/TorLauncherUtil.jsm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/toolkit/components/tor-launcher/TorLauncherUtil.jsm b/toolkit/components/tor-launcher/TorLauncherUtil.jsm
index c2e066e5d29f..f606a4076bb7 100644
--- a/toolkit/components/tor-launcher/TorLauncherUtil.jsm
+++ b/toolkit/components/tor-launcher/TorLauncherUtil.jsm
@@ -196,12 +196,15 @@ class TorFile {
         throw new Error("Unknown file type");
     }
     if (TorLauncherUtil.isWindows) {
-      this.path = this.path.replace("/", "\\");
+      this.path = this.path.replaceAll("/", "\\");
     }
     this.isRelativePath = true;
   }
 
   pathToFile() {
+    if (TorLauncherUtil.isWindows) {
+      this.path = this.path.replaceAll("/", "\\");
+    }
     // Turn 'path' into an absolute path when needed.
     if (this.isRelativePath) {
       const isUserData =

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tbb-commits mailing list