[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-156.0a1-17.0-2] fixup! TB 40933: Add tor-launcher functionality



Title: GitLab

Pier Angelo Vendrame pushed to branch tor-browser-156.0a1-17.0-2 at The Tor Project / Applications / Tor Browser

Commits:

  • 7adda3d1
    by Neel Chauhan at 2026-11-11T17:49:01+01:00
    fixup! TB 40933: Add tor-launcher functionality
    
    TB 45344: Remove getBridges from TorProviderBase.
    

3 changed files:

Changes:

  • toolkit/components/tor-launcher/TorProvider.sys.mjs
    ... ... @@ -431,21 +431,6 @@ export class TorProvider extends TorProviderBase {
    431 431
         await this.#controller.newnym();
    
    432 432
       }
    
    433 433
     
    
    434
    -  /**
    
    435
    -   * Get the bridges Tor has been configured with.
    
    436
    -   *
    
    437
    -   * @returns {Bridge[]} The configured bridges
    
    438
    -   */
    
    439
    -  async getBridges() {
    
    440
    -    // Ideally, we would not need this function, because we should be the one
    
    441
    -    // setting them with TorSettings. However, TorSettings is not notified of
    
    442
    -    // change of settings. So, asking tor directly with the control connection
    
    443
    -    // is the most reliable way of getting the configured bridges, at the
    
    444
    -    // moment. Also, we are using this for the circuit display, which should
    
    445
    -    // work also when we are not configuring the tor daemon, but just using it.
    
    446
    -    return this.#controller.getBridges();
    
    447
    -  }
    
    448
    -
    
    449 434
       /**
    
    450 435
        * Get the configured pluggable transports.
    
    451 436
        *
    

  • toolkit/components/tor-launcher/TorProviderBase.sys.mjs
    ... ... @@ -174,10 +174,6 @@ export class TorProviderBase {
    174 174
         throw new Error("newnym not implemented.");
    
    175 175
       }
    
    176 176
     
    
    177
    -  async getBridges() {
    
    178
    -    throw new Error("getBridges not implemented.");
    
    179
    -  }
    
    180
    -
    
    181 177
       async getPluggableTransports() {
    
    182 178
         throw new Error("getPluggableTransports not implemented.");
    
    183 179
       }
    

  • toolkit/components/tor-launcher/TorProviderMock.sys.mjs
    ... ... @@ -79,10 +79,6 @@ export class TorProviderMock extends TorProviderBase {
    79 79
     
    
    80 80
       async newnym() {}
    
    81 81
     
    
    82
    -  async getBridges() {
    
    83
    -    return [];
    
    84
    -  }
    
    85
    -
    
    86 82
       async getPluggableTransports() {
    
    87 83
         return [];
    
    88 84
       }
    

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx