Closed Bug 1844890 Opened 2 years ago Closed 2 years ago

SearchService's default engine has changed notification bar displays engine id rather than engine name

Categories

(Firefox :: Search, defect)

Firefox 117
Desktop
All
defect

Tracking

()

VERIFIED FIXED
117 Branch
Tracking Status
firefox-esr115 --- verified
firefox116 + verified
firefox117 --- verified

People

(Reporter: mcheang, Assigned: mcheang)

Details

Attachments

(1 file)

The notification bar for default engine change is displaying engine id rather than engine name. I think this is a regression due to refactoring I did sometime ago. See Bug 1786324.

I've put up a patch so get the engine name before displaying the notification bar. I reference this._engines to retrieve the engine name because this.#addEngineToStore is called beforehand. That means the this._engines map is already populated with engines.

Assignee: nobody → mcheang
Attachment #9345152 - Attachment description: Bug 1844890 - Change default engine change notification bar to display engine names rather than engine ids. r=#search-reviewers → Bug 1844890 - Change default engine change notification bar to display engine names rather than engine ids. r=#search-reviewers,Standard8

[Tracking Requested - why for this release]: This is a bug that we'd potentially like to include as a ride-along to a RC rebuild or dot release.

Flags: qe-verify+
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1bd9e2aadd5e Change default engine change notification bar to display engine names rather than engine ids. r=Standard8

Comment on attachment 9345152 [details]
Bug 1844890 - Change default engine change notification bar to display engine names rather than engine ids. r=#search-reviewers,Standard8

Beta/Release Uplift Approval Request

  • User impact if declined: When we make an update to the search engines, users might see an infobar displayed if their default engine has changed. Their default engine id is currently displayed rather than the engine name. Displaying the engine id would show a combination of the engine webextension id and the local or it could look even more confusing to the user when it's a non-application engine id. These ids would be a long string of alpha-numeric characters.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce:
  1. Set a engine as default (application provided engine or any open search engine)
  2. Remove that engine
  3. Restart Firefox
  4. Infobar should show up displaying old engine name that's removed, and the new engine name that's been replaced as default. No engine ids should be displayed, only the engine's name.
  5. Go through Step 1 to 4 again, but this time test the infobar should show up on 5 minutes idle rather than restart.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This change as been manually tested and there are automated tests, and there's no major changes aside from passing in the engine name rather than the engine id to the function.
  • String changes made/needed:
  • Is Android affected?: Yes

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Same as above. We don't want users to see a notification that is confusing if their default engine has changed.
  • User impact if declined: Users will see engine ids, which looks confusing.
  • Fix Landed on Version:
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Same as above.
Attachment #9345152 - Flags: approval-mozilla-release?
Attachment #9345152 - Flags: approval-mozilla-esr115?
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch

Confirming this issue as verified fixed on 117.0a1(20230726154100) using macOS 14, Ubuntu 22 and Windows 11x64.

Status: RESOLVED → VERIFIED

Comment on attachment 9345152 [details]
Bug 1844890 - Change default engine change notification bar to display engine names rather than engine ids. r=#search-reviewers,Standard8

Approved for 116.0rc2

Attachment #9345152 - Flags: approval-mozilla-release? → approval-mozilla-release+

The patch landed in nightly and beta is affected.
:mcheang, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox116 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(mcheang)

It has already been requested.

Flags: needinfo?(mcheang)

Confirming this issue as verified fixed on 116.0(20230727152340) using macOS 14, Windows 11 and Ubuntu 22.

Flags: qe-verify+

Comment on attachment 9345152 [details]
Bug 1844890 - Change default engine change notification bar to display engine names rather than engine ids. r=#search-reviewers,Standard8

Approved for 115.2esr.

Attachment #9345152 - Flags: approval-mozilla-esr115? → approval-mozilla-esr115+

Confirming this issue as verified fixed on 115.2esr(20230821110938) using macOS 14, Windows11 and Ubuntu 22.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: