[tor-commits] [torbutton/master] Switch DDG search on homepage from POST to GET

gk at torproject.org gk at torproject.org
Tue Jan 12 08:08:40 UTC 2021


commit 2a174533acf8163be0996c56153067b001d253d0
Author: Peter Story <pstory at andrew.cmu.edu>
Date:   Mon Jan 11 13:56:54 2021 -0500

    Switch DDG search on homepage from POST to GET
    
    See tor-browser#40287
    
    Also, eliminate extra "b" parameter from the search form. The
    presence of "b" would reveal that the search was initiated from
    the landing page, rather than the urlbar.
---
 chrome/content/aboutTor/aboutTor.xhtml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/aboutTor/aboutTor.xhtml b/chrome/content/aboutTor/aboutTor.xhtml
index 25267fc3..450a72ff 100644
--- a/chrome/content/aboutTor/aboutTor.xhtml
+++ b/chrome/content/aboutTor/aboutTor.xhtml
@@ -70,12 +70,12 @@
     </div>
 
     <div class="searchbox hideIfTorOff"> <!-- begin form based search -->
-      <form action="&aboutTor.searchDDGPost.link;" method="post">
+      <form action="&aboutTor.searchDDGPost.link;" method="get">
         <div class="searchwrapper">
           <label class="searchlabel" for="search-text"> </label>
           <input name="q" id="search-text" placeholder="&aboutTor.search.label;"
                  autocomplete="off" type="text"/>
-          <input name="b" id="search-button" value=""
+          <input id="search-button" value=""
                  title="&aboutTor.search.label;"
                  alt="&aboutTor.search.label;" type="submit"/>
         </div>





More information about the tor-commits mailing list