Bug 1481420 - DuckDuckGo doesn't use subdomains. r=adw
authorMichael Kaply <mozilla@kaply.com>
Mon, 13 Aug 2018 19:19:44 +0000
changeset 486396 5373497f3c4ed10f2511cda855dab8ac31a3979c
parent 486395 3049a5cc847bf692e3f1d9e69837d1b03c918a8f
child 486397 44517ac63b7ca1e1d8f71fe320cedd50b60c56fe
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersadw
bugs1481420
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1481420 - DuckDuckGo doesn't use subdomains. r=adw Differential Revision: https://phabricator.services.mozilla.com/D2847
toolkit/components/search/nsSearchService.js
--- a/toolkit/components/search/nsSearchService.js
+++ b/toolkit/components/search/nsSearchService.js
@@ -4209,17 +4209,17 @@ SearchService.prototype = {
         }
 
         if (!sendSubmissionURL) {
           // ... or well known search domains.
           //
           // Starts with: www.google., search.aol., yandex.
           // or
           // Ends with: search.yahoo.com, .ask.com, .bing.com, .startpage.com, baidu.com, duckduckgo.com
-          const urlTest = /^(?:www\.google\.|search\.aol\.|yandex\.)|(?:search\.yahoo|\.ask|\.bing|\.startpage|\.baidu|\.duckduckgo)\.com$/;
+          const urlTest = /^(?:www\.google\.|search\.aol\.|yandex\.)|(?:search\.yahoo|\.ask|\.bing|\.startpage|\.baidu|duckduckgo)\.com$/;
           sendSubmissionURL = urlTest.test(engineHost);
         }
       }
 
       if (sendSubmissionURL) {
         let uri = engine._getURLOfType("text/html")
                         .getSubmission("", engine, "searchbar").uri;
         uri = uri.mutate()