Closed Bug 1758729 Opened 2 years ago Closed 2 years ago

Live language Search switch Wikipedia localized engine is not switched

Categories

(Firefox :: Search, defect, P2)

Firefox 100
Desktop
All
defect

Tracking

()

VERIFIED FIXED
100 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox98 --- unaffected
firefox99 --- disabled
firefox100 --- verified

People

(Reporter: aflorinescu, Assigned: standard8)

References

Details

Attachments

(1 file)

[Description:]

Wikipedia has most engines localized, live switching requires the localized wikipedia engines to be changed.

[Environment:]

99.0b1 (2022-03-09)
100.0a1 (2022-03-09)

Mac 11
Windows 10

[Preconditions:]

user_pref("intl.multilingual.downloadEnabled", true);
user_pref("intl.multilingual.enabled", true);
user_pref("intl.multilingual.liveReload", true);
Install:
language-pack zh-cn
language-pack ca

[Steps:]
  1. Install a firefox Firefox locale, en-us for example (autoset region not that relevant).
  2. Install language packs from the preconditions.
  3. Open about:preferences / Language.
  4. Switch the language to zh-cn.
  5. Open a new tab with about:preferences / search and check engines
  6. Open new tab and try to search using the wikipedia engine.
[Actual Result:]
  1. Engines are shown correctly with zh-cn localization applied
  2. The search cannot be completed, en.wikipedia is removed but not replaced with cn.wikipedia (TypeError: can't access property "getSubmission", engine is null)
[Expected Result:]
  1. Engines are shown correctly with zh-cn localization applied
  2. before_language _switch_wikipedia is swapped with the after_language_switch_wikipedia.
[Regression Range:]

Not a regression.

Severity: -- → S3
Assignee: nobody → standard8
Priority: -- → P2

The add-on manager may not have updated the default locale for the WebExtension, so we need to ensure we get the correct default locale.
Also correct the check for testing if the name is different to the existing engine.

Attachment #9268675 - Attachment description: WIP: Bug 1758729 - Ensure search engines loading different locales from WebExtension are correctly loaded when reloading engines. → Bug 1758729 - Ensure search engines loading different locales from WebExtension are correctly loaded when reloading engines. r?mcheang!,jteow!
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d6cd1fa1e633
Ensure search engines loading different locales from WebExtension are correctly loaded when reloading engines. r=mcheang,jteow
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch

Verified as fixed on Firefox 100.0b1 with Mac 11 and Windows 10.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: