Bug 1481420 - DuckDuckGo doesn't use subdomains. r=adw
authorMichael Kaply <mozilla@kaply.com>
Mon, 13 Aug 2018 19:19:44 +0000
changeset 431271 5373497f3c4ed10f2511cda855dab8ac31a3979c
parent 431270 3049a5cc847bf692e3f1d9e69837d1b03c918a8f
child 431272 44517ac63b7ca1e1d8f71fe320cedd50b60c56fe
push id67724
push usermozilla@kaply.com
push dateMon, 13 Aug 2018 20:05:32 +0000
treeherderautoland@5373497f3c4e [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()