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

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-115.5.0esr-13.5-1] 2 commits: fixup! Omnibox: Add DDG, Startpage, Disconnect, Youtube, Twitter; remove Amazon, eBay, bing



Title: GitLab

Pier Angelo Vendrame pushed to branch tor-browser-115.5.0esr-13.5-1 at The Tor Project / Applications / Tor Browser

Commits:

  • 116e6f82
    by Pier Angelo Vendrame at 2023-12-06T17:04:38+00:00
    fixup! Omnibox: Add DDG, Startpage, Disconnect, Youtube, Twitter; remove Amazon, eBay, bing
    
    Bug 42283: Remove blockchair
    
  • 4195dec5
    by Pier Angelo Vendrame at 2023-12-06T17:04:38+00:00
    fixup! Bug 41435: Add a Tor Browser migration function
    
    Bug 42283: Remove blockchair
    

6 changed files:

Changes:

  • browser/components/BrowserGlue.sys.mjs
    ... ... @@ -4576,7 +4576,9 @@ BrowserGlue.prototype = {
    4576 4576
         //            migration to packaged locales.
    
    4577 4577
         // Version 2: Tor Browser 13.0/13.0a1: tor-browser#41845. Also, removed some
    
    4578 4578
         //            torbutton preferences that are not used anymore.
    
    4579
    -    const TBB_MIGRATION_VERSION = 2;
    
    4579
    +    // Version 3: Tor Browser 13.0.7/13.5a3: Remove blockchair
    
    4580
    +    //            (tor-browser#42283).
    
    4581
    +    const TBB_MIGRATION_VERSION = 3;
    
    4580 4582
         const MIGRATION_PREF = "torbrowser.migration.version";
    
    4581 4583
     
    
    4582 4584
         // If we decide to force updating users to pass through any version
    
    ... ... @@ -4628,6 +4630,22 @@ BrowserGlue.prototype = {
    4628 4630
             }
    
    4629 4631
           }
    
    4630 4632
         }
    
    4633
    +    if (currentVersion < 3) {
    
    4634
    +      (async () => {
    
    4635
    +        try {
    
    4636
    +          const engine = await lazy.AddonManager.getAddonByID(
    
    4637
    +            "blockchair@xxxxxxxxxxxxxxxxxx"
    
    4638
    +          );
    
    4639
    +          await engine?.uninstall();
    
    4640
    +        } catch {}
    
    4641
    +        try {
    
    4642
    +          const engine = await lazy.AddonManager.getAddonByID(
    
    4643
    +            "blockchair-onion@xxxxxxxxxxxxxxxxxx"
    
    4644
    +          );
    
    4645
    +          engine?.uninstall();
    
    4646
    +        } catch {}
    
    4647
    +      })();
    
    4648
    +    }
    
    4631 4649
     
    
    4632 4650
         Services.prefs.setIntPref(MIGRATION_PREF, TBB_MIGRATION_VERSION);
    
    4633 4651
       },
    

  • browser/components/search/extensions/blockchair-onion/favicon.png deleted
    No preview for this file type
  • browser/components/search/extensions/blockchair-onion/manifest.json deleted
    1
    -{
    
    2
    -  "name": "BlockchairOnion",
    
    3
    -  "description": "Blockchair Onion",
    
    4
    -  "manifest_version": 2,
    
    5
    -  "version": "1.0",
    
    6
    -  "applications": {
    
    7
    -    "gecko": {
    
    8
    -      "id": "blockchair-onion@xxxxxxxxxxxxxxxxxx"
    
    9
    -    }
    
    10
    -  },
    
    11
    -  "hidden": true,
    
    12
    -  "icons": {
    
    13
    -    "16": "favicon.png"
    
    14
    -  },
    
    15
    -  "web_accessible_resources": [
    
    16
    -    "favicon.png"
    
    17
    -  ],
    
    18
    -  "chrome_settings_overrides": {
    
    19
    -    "search_provider": {
    
    20
    -      "name": "BlockchairOnion",
    
    21
    -      "search_url": "http://blkchairbknpn73cfjhevhla7rkp4ed5gg2knctvv7it4lioy22defid.onion/search",
    
    22
    -      "search_form": "http://blkchairbknpn73cfjhevhla7rkp4ed5gg2knctvv7it4lioy22defid.onion/search/?q={searchTerms}",
    
    23
    -      "search_url_get_params": "q={searchTerms}"
    
    24
    -    }
    
    25
    -  }
    
    26
    -}

  • browser/components/search/extensions/blockchair/favicon.png deleted
    No preview for this file type
  • browser/components/search/extensions/blockchair/manifest.json deleted
    1
    -{
    
    2
    -  "name": "Blockchair",
    
    3
    -  "description": "Blockchair",
    
    4
    -  "manifest_version": 2,
    
    5
    -  "version": "1.0",
    
    6
    -  "applications": {
    
    7
    -    "gecko": {
    
    8
    -      "id": "blockchair@xxxxxxxxxxxxxxxxxx"
    
    9
    -    }
    
    10
    -  },
    
    11
    -  "hidden": true,
    
    12
    -  "icons": {
    
    13
    -    "16": "favicon.png"
    
    14
    -  },
    
    15
    -  "web_accessible_resources": [
    
    16
    -    "favicon.png"
    
    17
    -  ],
    
    18
    -  "chrome_settings_overrides": {
    
    19
    -    "search_provider": {
    
    20
    -      "name": "Blockchair",
    
    21
    -      "search_url": "https://blockchair.com/search",
    
    22
    -      "search_form": "https://blockchair.com/search/?q={searchTerms}",
    
    23
    -      "search_url_get_params": "q={searchTerms}"
    
    24
    -    }
    
    25
    -  }
    
    26
    -}

  • toolkit/components/search/SearchService.sys.mjs
    ... ... @@ -2282,16 +2282,11 @@ export class SearchService {
    2282 2282
           { webExtension: { id: "ddg@xxxxxxxxxxxxxxxxxx" }, orderHint: 100 },
    
    2283 2283
           { webExtension: { id: "youtube@xxxxxxxxxxxxxxxxxx" }, orderHint: 90 },
    
    2284 2284
           { webExtension: { id: "google@xxxxxxxxxxxxxxxxxx" }, orderHint: 80 },
    
    2285
    -      { webExtension: { id: "blockchair@xxxxxxxxxxxxxxxxxx" }, orderHint: 70 },
    
    2286
    -      { webExtension: { id: "ddg-onion@xxxxxxxxxxxxxxxxxx" }, orderHint: 60 },
    
    2287
    -      {
    
    2288
    -        webExtension: { id: "blockchair-onion@xxxxxxxxxxxxxxxxxx" },
    
    2289
    -        orderHint: 50,
    
    2290
    -      },
    
    2291
    -      { webExtension: { id: "startpage@xxxxxxxxxxxxxxxxxx" }, orderHint: 40 },
    
    2292
    -      { webExtension: { id: "twitter@xxxxxxxxxxxxxxxxxx" }, orderHint: 30 },
    
    2293
    -      { webExtension: { id: "wikipedia@xxxxxxxxxxxxxxxxxx" }, orderHint: 20 },
    
    2294
    -      { webExtension: { id: "yahoo@xxxxxxxxxxxxxxxxxx" }, orderHint: 10 },
    
    2285
    +      { webExtension: { id: "ddg-onion@xxxxxxxxxxxxxxxxxx" }, orderHint: 70 },
    
    2286
    +      { webExtension: { id: "startpage@xxxxxxxxxxxxxxxxxx" }, orderHint: 60 },
    
    2287
    +      { webExtension: { id: "twitter@xxxxxxxxxxxxxxxxxx" }, orderHint: 50 },
    
    2288
    +      { webExtension: { id: "wikipedia@xxxxxxxxxxxxxxxxxx" }, orderHint: 40 },
    
    2289
    +      { webExtension: { id: "yahoo@xxxxxxxxxxxxxxxxxx" }, orderHint: 30 },
    
    2295 2290
         ];
    
    2296 2291
     
    
    2297 2292
         for (let e of engines) {
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits