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

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



commit 74d22e9cc3cd29bc5f676ffb17bfd3c05c59081a
Author: Peter Story <pstory@xxxxxxxxxxxxxx>
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 fdc02593..a5ef1f1c 100644
--- a/chrome/content/aboutTor/aboutTor.xhtml
+++ b/chrome/content/aboutTor/aboutTor.xhtml
@@ -53,12 +53,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">&nbsp;</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>

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