Closed Bug 1816939 Opened 1 year ago Closed 1 year ago

Search Engine list items are doubled after repeating the deletion and restore default action

Categories

(Firefox :: Search, defect, P3)

Firefox 111
Desktop
All
defect

Tracking

()

VERIFIED FIXED
112 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox110 --- unaffected
firefox111 --- verified
firefox112 --- verified

People

(Reporter: zstimi, Assigned: standard8)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Found in

  • Firefox 111.0b1

Affected versions

  • Firefox 111.0b1
  • Firefox 112.0a1

Tested platforms

  • Affected platforms: Windows 10, Ubuntu 22, macOS 12

Steps to reproduce

  1. Launch Firefox.
  2. Go to about:preferences#search, last item: Search Shortcuts.
  3. Remove one or two search engines then click on Restore Default Search Engines.
  4. Repeat the above step (delete search engine and restore default).

Expected result

  • The Search Engine list appears correctly, each item appears only once.

Actual result

  • In Search Engine list the items are doubled after repeating the deletion and restore default action, see the attached screenshot (doubled-search-engine.png).

Regression range

Additional notes

  • Must repeat several times the step 3, only in this way the issue appears.

Set release status flags based on info from the regressing bug 1781768

:standard8, since you are the author of the regressor, bug 1781768, could you take a look?

For more information, please visit auto_nag documentation.

Flags: needinfo?(standard8)

Comparing objects may be unreliable, using search engine ids are guarenteed to be unique.

Assignee: nobody → standard8
Status: NEW → ASSIGNED

I found the issue, patch attached. Note that it doesn't really have any significant effects - the list is reset after a reload or closing/opening, hence I think this is an S4 not S3.

Severity: S3 → S4
Flags: needinfo?(standard8)
Priority: -- → P3

Comment on attachment 9318421 [details]
Bug 1816939 - Use search engine ids rather than objects for updating the list in preferences. r?#preferences-reviewers!

Beta/Release Uplift Approval Request

  • User impact if declined: Confusing search engine list UI in the settings pages
  • 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: comment 0
  • List of other uplifts needed: n/a
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): 1 line JS change, good test coverage
  • String changes made/needed: No
  • Is Android affected?: No
Attachment #9318421 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/82fe1346472e
Use search engine ids rather than objects for updating the list in preferences. r=settings-reviewers,Gijs
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
QA Whiteboard: [qa-triaged]

Comment on attachment 9318421 [details]
Bug 1816939 - Use search engine ids rather than objects for updating the list in preferences. r?#preferences-reviewers!

Approved for 111.0b4

Attachment #9318421 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

I can confirm this issue is fixed, I verified using latest nightly Firefox 112.0a1 and Firefox 111.0b4 on Win 10 x64, macOS 10.15 and Ubuntu 22 x64.

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

Attachment

General

Created:
Updated:
Size: