Open kjozwiak opened 2 months ago
Some more info re: the above. I believe this happens when you visit more than three Opensearch
websites. Seems like we're only listing three and once more start getting added (but not visible), you're going to run into issues. Another example:
https://github.com/user-attachments/assets/038e158b-5c98-4b54-8e14-0864b77828bb
i went through the details. and it's an issue in the release channel as well. basically based on the chromium changes, if you have more than 3 OpenSearch options which you haven't selected into search engines, at a time it would only show 3 options and as soon as you select one, it would start showing different options from the list. https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/search_engines/android/java/src/org/chromium/chrome/browser/search_engines/settings/SearchEngineAdapter.java;l=61?q=SearchEngineA&ss=chromium
Description
I'm not 100% what is causing the crash but looks like it happens when you attempt to visit more than three different search engines that support
Opensearch
. You'll notice that only three are appearing underRecently visited
. Once you start selecting a SE fromRecently visited
, you'll notice that the fourth SE is not appearing but sometimes is selected even though you selected something different from the list. For example, selectingyahoo.com
but gettingyou.com
even thoughyou.com
is not on the list. Eventually you'll run to the following crash which is pretty easy to reproduce.The above was found as a follow up to https://github.com/brave/brave-core/pull/23659.
Steps to reproduce
1.71.37 Chromium: 128.0.6613.85
yahoo.com
,amazon.com
&mojeek.com
(ensure you perform searches so they get added intoRecently visited
Search engines
->Standard Tab
underSettings
and ensure the three SE have been addedyou.com
and perform a searchRecently visited
At this point, just start picking random SE from both
Recently visited
and the normal SE. You'll eventually see that if you pickyahoo.com
,amazon.com
ormojeek.com
, you'll sometimes getyou.com
but it never appears in the list. Eventually Brave will crash.Actual result
https://github.com/user-attachments/assets/06808a31-a172-4f61-b30f-387370a51a2a
Expected result
Brave shouldn't be crashing when users are switching between SE under
Recently visited
.Reproduces how often
Easily reproduced
Brave version
Device
Pixel 6
Android 15 BETA
Channel information
Reproducibility
Miscellaneous information
No response