brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.91k stars 2.34k forks source link

Pressing "Enter" twice when using the address bar in a Private window to search redirects to search.brave.com #40884

Open Brave-Matt opened 2 months ago

Brave-Matt commented 2 months ago

Description

When you are using the address bar to enter a search query while using a Private window, there is a bug wherein the browser redirects you to search.brave.com if the Enter button is pressed twice in a row in quick succession.

https://github.com/user-attachments/assets/af3e41a0-98d4-4052-9c44-259cb37eda39

It does not matter which search engine is selected when attempting to search, after the second press of Enter will always redirect to search.brave.com. This behavior only occurs in Private windows and happens across all desktop platforms.

Steps to reproduce

  1. Launch a private window
  2. Enter search query in address bar
  3. Press Enter twice quickly

Actual result

Redirected to search.brave.com

Expected result

Should just search the query in the selected search engine.

Reproduces how often

Easily reproduced

Brave version (brave://version info)

v1.62.169

Channel information

Reproducibility

Miscellaneous information

Original user thread: https://community.brave.com/t/double-pressing-enter-in-url-bar-redirects-to-brave-search-main-page/566842/5

bsclifton commented 2 months ago

cc: @rebron

rebron commented 2 months ago

@Brave-Matt Can you try again in 1.69.162? I can't reproduce what you showed in the video. Entering twice quickly gets me to the default search engine results page.

rebron commented 2 months ago

Nevermind, sorry about that. Still reproducible in 1.69.162. It required I restart the browser for the search engine default to apply properly. I can't consistently reproduce it, in some instances the double enter goes to the search results page as expected.

Enter once gets you to the results page of whatever search engine. Enter twice quickly takes to search.brave.com