<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Matthew, <div class=""><br class=""></div><div class="">I was reading a recent Tor-usability paper ("Peeling the Onion’s User Experience Layer,” by Gallagher et al.) and I found a relevant quote:</div><div class=""><blockquote type="cite" class="">“I did run into a quirk, and I do not know if this was due to Tor or DuckDuckGo. I use StackOverFlow to get help on coding problems and <b class="">whenever I clicked back it took me to the main page of Tor and not to the list of search events</b>. This was very frustrating because I had to retype my query and look for it again.” – (P6, F, 22, write-up)<br class=""></blockquote><div class="">This paper was published in 2018, so this suggests that the usability issue we’ve been discussing has been present (at least in some form) for several years. To me, this suggests that DDG is unlikely to change things on their end, so this seems like another reason to prefer fix (1). </div><div class=""><br class=""></div><div class="">If we’d like to proceed with fix (1), would it be helpful if I implemented the change and opened a PR on the issue tracker?</div><div class=""><br class=""></div><div class="">Thanks!</div><div class="">-Peter </div><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 23, 2020, at 9:42 AM, Peter Story <<a href="mailto:pstory@andrew.cmu.edu" class="">pstory@andrew.cmu.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Matthew, <div class=""><br class=""></div><div class="">Thank you for taking a closer look! It’s interesting that DDG may have changed something on their end – I hadn’t thought of that possibility. </div><div class=""><br class=""></div><div class="">I did some searching, and it looks like DDG is aware the POST can break back buttons, since they mention it here: <a href="https://duckduckgo.com/privacy" class="">https://duckduckgo.com/privacy</a> </div><div class=""><blockquote type="cite" class="">You can turn on POST requests on our settings page, but it has its own issues. <b class="">POST requests usually break browser back buttons, and they make it impossible for you to easily share your search by copying and pasting it out of your Web browser's address bar</b>.<div class="">…</div><div class="">Because of these drawbacks in HTTPS, POST and proxies we decided to take the redirect approach to combat search leakage. However, we leave the choice up to you. You can deviate from the default on our settings page by toggling the redirect or address bar settings. You can also use our encrypted version.<br class=""></div></blockquote><div class=""><br class=""></div>Since the DDG team has documented the limitations of using POST, my intuition is that they’d be unlikely to make changes to help overcome those limitations (e.g., by adjusting the caching settings for search results), but it couldn’t hurt to check with them!</div><div class=""><br class=""></div><div class="">So my preference (at the moment) is also for option (1). </div><div class=""><br class=""></div><div class="">Thanks!</div><div class="">-Peter <br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Nov 21, 2020, at 9:42 AM, Matthew Finkel <<a href="mailto:sysrqb@torproject.org" class="">sysrqb@torproject.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi Peter,<br class=""><br class="">I looked at this a little closer and this seems like a "regression"<br class="">(change in behavior) on DDG and not in Tor Browser. I tested Tor Browser<br class="">8.0 (2018) and found the same behavior.<br class=""><br class="">I suspect this usability regression is caused by the results page not<br class="">being considered cachable. Normally, Tor Browser (Firefox) would save<br class="">the previous page in the bfcache (back-forward cache) and re-use it when<br class="">the Back button is pressed, but this is not happening now and the page<br class="">is requested again instead.<br class=""><br class="">There are three obvious paths forward.<br class=""><br class="">1) Use a GET request instead of POST<br class="">  - This does not resolve the regression, but when the page is<br class="">    re-requested on "Back" the original search terms are included in the<br class="">    GET request and the user is presented with the results page again<br class=""><br class="">2) Results from <a href="http://html.duckduckgo.com/" class="">html.duckduckgo.com</a> are (apparently) successfully cached<br class="">   (currently used when the Safest security level is set in Tor Browser)<br class="">  - Use this domain on all security levels, instead of the main DDG site<br class="">    with Javascript optimizations<br class=""><br class="">3) Work with DDG and identify why this is broken and find a resolution<br class=""><br class=""><br class="">I am leaning toward (1) because:<br class="">  a) This is the default method in Firefox<br class="">  b) I am skeptical about the (security) benefits of POST over GET<br class="">  c) We know this works<br class=""><br class="">We'll get some complaints about switching to using GET as the default<br class="">search method in Tor Browser, so I'll reach out to DDG and work with<br class="">them on this, too.<br class=""><br class="">I'd like to hear concerns about switching to using GET, too.<br class=""><br class="">On Wed, Nov 18, 2020 at 04:36:33PM -0500, Peter Story wrote:<br class=""><blockquote type="cite" class="">Hello Matthew, <br class=""><br class="">Thanks for the quick reply! And no worries at all. <br class=""><br class="">Glad to hear that the team is aware of the problem! I think that switching back to GETs (I believe this was the behavior before v10) wouldn’t significantly increase the threat of should surfing. With the current configuration, the search is still visible on the search results page itself, and after clicking on a linked page the text of the search is still visible in the browser’s back button. <br class=""><br class="">I think this regression has the potential to seriously impact the browser’s usability, because when following links in search, a significant percent of linked websites block Tor users. When a user encounters a page which blocks them, they will probably try to return to the search results to try another website. Crucially, the back button not returning to the search results breaks this workflow.<br class=""><br class="">How does decision-making for issues like this typically work? If I’d like to help fix this issue, do you have any recommendations (e.g., should I open a PR with a fix)? <br class=""><br class="">Thank you!<br class="">-Peter <br class=""><br class=""><blockquote type="cite" class="">On Nov 18, 2020, at 4:20 PM, Matthew Finkel <<a href="mailto:sysrqb@torproject.org" class="">sysrqb@torproject.org</a>> wrote:<br class=""><br class="">On Wed, Nov 18, 2020 at 03:59:15PM -0500, Peter Story wrote:<br class=""><blockquote type="cite" class="">I reported this usability problem on the tor-talk list but received no replies, so I thought I’d try here. For some context, I’m a researcher at Carnegie Mellon University, and I’m considering running a user-study involving Tor Browser in the coming months. I think this usability problem might negatively impact users (in my study, and at large), so I thought I should bring it to your attention. <br class=""><br class=""></blockquote><br class="">Hi Peter,<br class=""><br class="">Thanks for sending this mail and following up. I apologize for the lack<br class="">of response, we're all overloaded.<br class=""><br class="">This is a known usability issue. It arises from the fact that Tor<br class="">Browser sends the initial search query via a POST request. The breakage<br class="">occurs because the "Back" action triggers a GET request for the previous<br class="">site and it does not re-play the original POST request. I assume the<br class="">reasoning for this is that POST requests are not assumed to be<br class="">idempotent, whereas GET requests are. I'm not sure how best we can solve<br class="">this except switching to using GET, however this places all queries into<br class="">the URL bar and then they become vulnerabilbe to shoulder-surfing as<br class="">such. That probably a necessary trade-off, though.<br class=""><br class=""><blockquote type="cite" class=""><br class=""><blockquote type="cite" class="">I’m seeing a small but annoying usability problem in v10 of Tor Browser (tested with 10.0.2 on a Mac). Replication:<br class=""><br class="">Open a new window<br class="">Search using either the URL bar or the “Search with DDG” field. On the page with search results, note that the page’s URL doesn’t contain the search query in the URL parameters.<br class="">Click on a link in the search results<br class="">Click the back button<br class="">Actual behavior: you are returned to a blank search page<br class="">Expected behavior: you are returned to your search results<br class=""><br class="">I don’t see this problem in the latest version of Firefox, 82.0.3, and I don’t remember seeing this problem before Tor Browser v10. Also, I do not see this problem for searches conducted with Google in Tor Browser. <br class=""><br class="">I’m wondering whether this was an intentional change, or something that should be fixed. Hopefully it's an easy fix: if the search is conducted using URL parameters, then the back button should work as expected. <br class=""></blockquote><br class="">Sincerely,<br class="">-Peter Story<br class="">PhD Student<br class=""><br class=""></blockquote><br class=""><blockquote type="cite" class="">_______________________________________________<br class="">tbb-dev mailing list<br class=""><a href="mailto:tbb-dev@lists.torproject.org" class="">tbb-dev@lists.torproject.org</a> <<a href="mailto:tbb-dev@lists.torproject.org" class="">mailto:tbb-dev@lists.torproject.org</a>><br class=""><a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-dev" class="">https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-dev</a> <<a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-dev" class="">https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-dev</a>><br class=""></blockquote><br class="">_______________________________________________<br class="">tbb-dev mailing list<br class=""><a href="mailto:tbb-dev@lists.torproject.org" class="">tbb-dev@lists.torproject.org</a> <<a href="mailto:tbb-dev@lists.torproject.org" class="">mailto:tbb-dev@lists.torproject.org</a>><br class=""><a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-dev" class="">https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-dev</a> <<a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-dev" class="">https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-dev</a>><br class=""></blockquote></blockquote><br class=""><blockquote type="cite" class="">_______________________________________________<br class="">tbb-dev mailing list<br class=""><a href="mailto:tbb-dev@lists.torproject.org" class="">tbb-dev@lists.torproject.org</a><br class=""><a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-dev" class="">https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-dev</a><br class=""></blockquote><br class="">_______________________________________________<br class="">tbb-dev mailing list<br class=""><a href="mailto:tbb-dev@lists.torproject.org" class="">tbb-dev@lists.torproject.org</a><br class=""><a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-dev" class="">https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-dev</a><br class=""></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>