Bug: bookmarks search field loses focus when search results update

Description of the issue:

Whenever I search my bookmarks, the input field loses focus frequently when the search results update. This is extremely annoying and unlike any other browser search feature I’ve ever encountered. I have a lot of bookmarks and if I mistype anything or change my search query, I have to mouse-click the search bar almost every time I want to edit the search.

Steps to Reproduce (add as many as necessary): 1. 2. 3.

  1. Open bookmarks side bar (Ctrl + B)
  2. Make sure you have a number of bookmarks. I used folders and sub-folders to organise my bookmarks, so make sure to test that as well.
  3. Click the search bookmarks field
  4. Type a few letters, then wait for the search results to update
  5. Try to type more; you’ll see the input field has lost focus and you need to click the field again to edit your search.
  6. This bug happens most often immediately after opening the bookmarks bar and typing in the first search. After a few edits of the search query, it sometimes starts to behave normally, only to randomly loses focus again at some point.
  7. While we’re at it: it would be really nice if the keyboard focus could move to the search box immediately when you press Ctrl+B.

Actual Result (gifs and screenshots are welcome!)

Expected result:

Keyboard focus should stay in the search bar at all times when the user is just typing and editing their search query.

Reproduces how often:

Frequently, but as stated this bug comes and goes randomly. It happens most often immediately after opening the toolbar and doing your first search.

Brave Version(about:brave):

Brave 1.88.136 (Official Build) (64-bit)

Reproducible on current live release (yes/no):

yes

Additional Information: