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

richard (@richard) git at gitlab.torproject.org
Wed Mar 13 19:02:36 UTC 2024



richard pushed to branch tor-browser-115.9.0esr-13.5-1 at The Tor Project / Applications / Tor Browser


Commits:
788a92e2 by Dan Ballard at 2024-03-13T11:51:50-07:00
fixup! Omnibox: Add DDG, Startpage, Disconnect, Youtube, Twitter; remove Amazon, eBay, bing

Bug 42459: Add Startpage Onion search provider

- - - - -


4 changed files:

- + browser/components/search/extensions/startpage-onion/favicon.png
- + browser/components/search/extensions/startpage-onion/manifest.json
- tbb-tests/browser_tor_omnibox.js
- toolkit/components/search/SearchService.sys.mjs


Changes:

=====================================
browser/components/search/extensions/startpage-onion/favicon.png
=====================================
Binary files /dev/null and b/browser/components/search/extensions/startpage-onion/favicon.png differ


=====================================
browser/components/search/extensions/startpage-onion/manifest.json
=====================================
@@ -0,0 +1,26 @@
+{
+  "name": "StartpageOnion",
+  "description": "Startpage Onion",
+  "manifest_version": 2,
+  "version": "1.0",
+  "applications": {
+    "gecko": {
+      "id": "startpage-onion at search.mozilla.org"
+    }
+  },
+  "hidden": true,
+  "icons": {
+    "16": "favicon.png"
+  },
+  "web_accessible_resources": [
+    "favicon.png"
+  ],
+  "chrome_settings_overrides": {
+    "search_provider": {
+      "name": "StartpageOnion",
+      "search_url": "http://startpagel6srwcjlue4zgq3zevrujfaow726kjytqbbjyrswwmjzcqd.onion/sp/search",
+      "search_form": "http://startpagel6srwcjlue4zgq3zevrujfaow726kjytqbbjyrswwmjzcqd.onion/sp/search/",
+      "search_url_post_params": "q={searchTerms}"
+    }
+  }
+}


=====================================
tbb-tests/browser_tor_omnibox.js
=====================================
@@ -17,7 +17,8 @@ add_task(async function() {
   is(engineIDs[3], "blockchair", "Blockchair is fourth search engine");
   is(engineIDs[4], "ddg-onion", "Duck Duck Go Onion is fifth search engine");
   is(engineIDs[5], "startpage", "Startpage is sixth search engine");
-  is(engineIDs[6], "twitter", "Twitter is sixth search engine");
-  is(engineIDs[7], "wikipedia", "Wikipedia is seventh search engine");
-  is(engineIDs[8], "yahoo", "Yahoo is eighth search engine");
+  is(engineIDs[6], "startpage-onion", "Startpage Onion is the seventh search engine");
+  is(engineIDs[7], "twitter", "Twitter is eighth search engine");
+  is(engineIDs[8], "wikipedia", "Wikipedia is ninth search engine");
+  is(engineIDs[9], "yahoo", "Yahoo is tenth search engine");
 });


=====================================
toolkit/components/search/SearchService.sys.mjs
=====================================
@@ -2284,9 +2284,10 @@ export class SearchService {
       { webExtension: { id: "google at search.mozilla.org" }, orderHint: 80 },
       { webExtension: { id: "ddg-onion at search.mozilla.org" }, orderHint: 70 },
       { webExtension: { id: "startpage at search.mozilla.org" }, orderHint: 60 },
-      { webExtension: { id: "twitter at search.mozilla.org" }, orderHint: 50 },
-      { webExtension: { id: "wikipedia at search.mozilla.org" }, orderHint: 40 },
-      { webExtension: { id: "yahoo at search.mozilla.org" }, orderHint: 30 },
+      { webExtension: { id: "startpage-onion at search.mozilla.org" }, orderHint: 50 },
+      { webExtension: { id: "twitter at search.mozilla.org" }, orderHint: 40 },
+      { webExtension: { id: "wikipedia at search.mozilla.org" }, orderHint: 30 },
+      { webExtension: { id: "yahoo at search.mozilla.org" }, orderHint: 20 },
     ];
 
     for (let e of engines) {



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/788a92e2ef9341f8e0d4b84ae74fbe6ef39d80a9

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/788a92e2ef9341f8e0d4b84ae74fbe6ef39d80a9
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20240313/1888522c/attachment-0001.htm>


More information about the tor-commits mailing list