richard pushed to branch tor-browser-115.9.0esr-13.0-1 at The Tor Project / Applications / Tor Browser
Commits: 769fd867 by Dan Ballard at 2024-03-13T19:08:24+00: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@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/sea...", + "search_form": "http://startpagel6srwcjlue4zgq3zevrujfaow726kjytqbbjyrswwmjzcqd.onion/sp/sea...", + "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@search.mozilla.org" }, orderHint: 80 }, { webExtension: { id: "ddg-onion@search.mozilla.org" }, orderHint: 70 }, { webExtension: { id: "startpage@search.mozilla.org" }, orderHint: 60 }, - { webExtension: { id: "twitter@search.mozilla.org" }, orderHint: 50 }, - { webExtension: { id: "wikipedia@search.mozilla.org" }, orderHint: 40 }, - { webExtension: { id: "yahoo@search.mozilla.org" }, orderHint: 30 }, + { webExtension: { id: "startpage-onion@search.mozilla.org" }, orderHint: 50 }, + { webExtension: { id: "twitter@search.mozilla.org" }, orderHint: 40 }, + { webExtension: { id: "wikipedia@search.mozilla.org" }, orderHint: 30 }, + { webExtension: { id: "yahoo@search.mozilla.org" }, orderHint: 20 }, ];
for (let e of engines) {
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/769fd867...
tbb-commits@lists.torproject.org