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

[tor-commits] [tor-browser/tor-browser-78.6.0esr-10.5-1] fixup! Omnibox: Add DDG, Startpage, Disconnect, Youtube, Twitter; remove Amazon, eBay, bing



commit 28ea631ca62814105ac9d7b54b006e5a8208d320
Author: Alex Catarineu <acat@xxxxxxxxxxxxxx>
Date:   Wed Nov 4 21:04:52 2020 +0100

    fixup! Omnibox: Add DDG, Startpage, Disconnect, Youtube, Twitter; remove Amazon, eBay, bing
---
 tbb-tests/browser_tor_omnibox.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tbb-tests/browser_tor_omnibox.js b/tbb-tests/browser_tor_omnibox.js
index e18b2a84a3d8..f3efd0c3da5e 100644
--- a/tbb-tests/browser_tor_omnibox.js
+++ b/tbb-tests/browser_tor_omnibox.js
@@ -1,14 +1,14 @@
 // # Test Tor Omnibox
 // Check what search engines are installed in the search box.
 
-function test() {
+add_task(async function() {
   // Grab engine IDs.
   let browserSearchService = Components.classes["@mozilla.org/browser/search-service;1"]
-                             .getService(Components.interfaces.nsIBrowserSearchService),
-      engineIDs = browserSearchService.getEngines().map(e => e.identifier);
+                             .getService(Components.interfaces.nsISearchService),
+      engineIDs = (await browserSearchService.getEngines()).map(e => e.identifier);
 
   // Check that we have the correct engines installed, in the right order.
   is(engineIDs[0], "ddg", "Default search engine is duckduckgo");
   is(engineIDs[1], "youtube", "Secondary search engine is youtube");
   is(engineIDs[2], "google", "Google is third search engine");
-}
+});



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