brave / brave-browser

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

Sites using Opensearch don't always appear in Brave "recently visited" search engines #38129

Open Brave-Matt opened 1 month ago

Brave-Matt commented 1 month ago

Description

Some search engines will not appear in Brave's Recently visited sites (Settings --> Search Engines --> Standard tab) and therefore cannot be set as the default search engine for the browser. The behavior seems to be inconsistent with Chrome's behavior, the expected behavior, and no discernible pattern is there.

When testing in Brave, I got the following results for different search engines — these sites do not appear Brave but do appear in Chrome:

Since they use the same protocol, search engines that appear in Chrome should also appear in Brave. Further, any site that supports opensearch should appear in Recently visited in Brave.

Issue reproduces how often

Every time

Version/Channel Information:

Device details

Brave version

1.65.126

Additional information

A user reporting the same issue: https://community.brave.com/t/add-presearch-as-my-default-search-engine-on-brave-mobile-on-android/541072/10

bsclifton commented 1 month ago

@Brave-Matt this should be happening on purpose. Maybe we didn't do a proper UI on Android, but there's a preference (disabled by default) that can be enabled to index OpenSearch compatible engines (Index other search engines). You can find it (on Desktop) on brave://settings/search image

We may need to make this visible on Android if it's not there already cc: @deeppandya

deeppandya commented 1 month ago

@Brave-Matt this should be happening on purpose. Maybe we didn't do a proper UI on Android, but there's a preference (disabled by default) that can be enabled to index OpenSearch compatible engines (Index other search engines). You can find it (on Desktop) on brave://settings/search image

We may need to make this visible on Android if it's not there already cc: @deeppandya

That's interesting. We can have a similar option in the search engine page for android. I am going to add the issue for triage.

deeppandya commented 1 month ago

@bsclifton upon checking the details, it seems Index other search engines option is enabled by default for android based on https://github.com/brave/brave-core/blob/78c4a3fa0bf401aec67aee299a8f522286947866/browser/brave_profile_prefs.cc#L399

deeppandya commented 1 month ago

@Brave-Matt i have verified the issue, it should be resolved with 1.65.133. i have also checked latest beta and nightly, both works as expected.