Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

[Bug] (regression) Google (and other engines) missing in other languages #6981

Closed
mkaply opened this issue Dec 5, 2019 · 9 comments
Closed
Assignees
Labels
🐞 bug Crashes, Something isn't working, .. eng:qa:verified QA Verified Feature:Search 🌐 L10N Localization, translation, strings, .. P1 Current sprint S1 Blocks development/testing, may impact more than 25% of users, causes data loss, potential chemspill

Comments

@mkaply
Copy link

mkaply commented Dec 5, 2019

Steps to reproduce

Switch language to French or German on the device.
Go to conduct a search.

Expected behavior

Google (and other engines) are present.

Actual behavior

Google is missing. All that is there is Bing, DDG and Twitter

Device information

  • Android device: Motorola G6
  • Fenix version: Latest nightly

┆Issue is synchronized with this Jira Task

@mkaply mkaply added the 🐞 bug Crashes, Something isn't working, .. label Dec 5, 2019
@liuche
Copy link
Contributor

liuche commented Dec 5, 2019

Maybe this is expected if these are the bundled search engines for each locale.

Just to clarify @mkaply: is the expectation that your search engines will always match the locale that you start with? or location? And if you switch to a different locale (or location), you do not change the search engines (and add a Yandex if you switch to RU, for example).

@mkaply
Copy link
Author

mkaply commented Dec 5, 2019

These definitely aren't the bundled search engines for each locale. Every locale has Google, Wikipedia and others and those are missing. The three that are being used (Bing, DDG, Twitter) are coincidentally the only engines that are exactly the same in every locale. I'm guessing that's going to help figure this out.

And yes, the expectation is that when you switch locales, you get a new set of engines for that locale.

@mcarare mcarare added this to Polish Bugs to Triage in Feature Polish via automation Dec 6, 2019
@sv-ohorvath sv-ohorvath added Feature:Search S1 Blocks development/testing, may impact more than 25% of users, causes data loss, potential chemspill 🌐 L10N Localization, translation, strings, .. labels Dec 6, 2019
@mcarare mcarare moved this from Polish Bugs to Triage to Prioritized Backlog in Feature Polish Dec 10, 2019
@kglazko kglazko self-assigned this Dec 10, 2019
@mcarare mcarare moved this from Prioritized Backlog to In progress in Feature Polish Dec 12, 2019
@vesta0 vesta0 added the needs:STR steps to reproduce label Dec 16, 2019
@boek boek added the P1 Current sprint label Dec 19, 2019
@lime124 lime124 added this to Sprint Backlog in Fenix Sprint Kanban Feb 6, 2020
@Mugurell
Copy link
Contributor

@kglazko Are you still working on this? Need any help?

@kglazko
Copy link
Contributor

kglazko commented Feb 11, 2020

I will unassign myself for now because I have some other things I'm working on at the moment :) Feel free to take a look!

@kglazko kglazko removed their assignment Feb 11, 2020
@liuche
Copy link
Contributor

liuche commented Feb 12, 2020

Thanks @Mugurell! If you could pick this up, that would be great.

@Mugurell Mugurell self-assigned this Feb 13, 2020
@Mugurell
Copy link
Contributor

Looked into this, found the underlying problem to be that when we return the list of search engines to be displayed in the AwesomeBar we filter the engines by a list of search engine identifiers
identifiers read from SharedPreferences and initialized only once when we first ask for the search engines.

So after changing the language on the device and ask for the search engines list to be displayed in the AwesomeBar we get a new list of search engines (different than before because of the locale change) which we filter by the same initial list of identifiers and now get fewer engines matching.

A solution might be to rebuild the list of identifiers every time the locale is changed (remove all identifiers of the previous default engines, add the identifiers of the new ones (keep the identifiers of the custom search engines )). But I'm just wondering why do we need this identifiers.

Since I see you worked the most on this, @boek I'm asking you if you think it would be ok to just remove the identifiers altogether or if we should go through the route of rebuilding the identifiers with each locale change.

@boek boek moved this from Sprint Backlog to In Progress in Fenix Sprint Kanban Feb 14, 2020
@boek boek moved this from In Progress to Sprint Backlog in Fenix Sprint Kanban Feb 14, 2020
@ekager
Copy link
Contributor

ekager commented Feb 14, 2020

Can reproduce and another particularly bad example:

  1. Device is in en-US, change locale in Fenix in Russian
  2. Restart app and go to Search Engine Settings

You only see Twitter as an option

@boek boek self-assigned this Feb 19, 2020
@boek boek moved this from Sprint Backlog to In Progress in Fenix Sprint Kanban Feb 19, 2020
boek added a commit to boek/fenix that referenced this issue Feb 19, 2020
boek added a commit to boek/fenix that referenced this issue Feb 19, 2020
@boek boek moved this from In Progress to Ready for QA in Fenix Sprint Kanban Feb 19, 2020
@boek boek added the eng:qa:needed QA Needed label Feb 19, 2020
@project-bot project-bot bot moved this from In progress to Ready for QA in Feature Polish Feb 19, 2020
@Diana-Rus
Copy link

Hi, the issue is not reproducible anymore.
There are no missing engines in other languages, neither when accessing AwesomeBar nor through "Settings"/"Search"/"Default search engine" list:

Devices:

  • Google Pixel 3a (Android 9)
  • Samsung (Android 8.0.0)
  • Sony Xperia Z5 (Android 7.0.0)
  • LG K4 (2017) (Android 6.0.1)

Build: Firefox Preview 4.0.0-beta.1 (Build #20500408) GV: 74.0-20200216164042
Note:

  • Issue through the alternative scenario from Comment 5 does not reproduce.
  • Firefox Beta still does not yet have the "Language" option in Settings.

Google Pixel 3a (Android 9)

  • French - Google search engine default, other engines displayed
    Screenshot_20200219-154559

  • German - Google search engine default, other engines displayed
    Screenshot_20200219-154742

  • Russian - Yandex search engine default, other engines displayed
    Screenshot_20200219-155143

  • Japanese - Google search engine default, other engines displayed
    Screenshot_20200219-155333

@Diana-Rus Diana-Rus added eng:qa:verified QA Verified and removed eng:qa:needed QA Needed labels Feb 19, 2020
@project-bot project-bot bot moved this from Ready for QA to Sprint 20.2 Done in Fenix Sprint Kanban Feb 19, 2020
@project-bot project-bot bot moved this from Sprint 20.2 Done to Sprint Backlog in Fenix Sprint Kanban Feb 19, 2020
Feature Polish automation moved this from Ready for QA to Done Feb 19, 2020
@abodea
Copy link
Member

abodea commented Mar 5, 2020

Removing the :need:STR as this issue was confirmed and closed by QA.

@abodea abodea removed the needs:STR steps to reproduce label Mar 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Crashes, Something isn't working, .. eng:qa:verified QA Verified Feature:Search 🌐 L10N Localization, translation, strings, .. P1 Current sprint S1 Blocks development/testing, may impact more than 25% of users, causes data loss, potential chemspill
Projects
No open projects
Development

No branches or pull requests

10 participants