"Restore Default Search Engines" button removes tabs, bookmark and history's search shortcuts from the list
Categories
(Firefox :: Search, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr78 | --- | unaffected |
| firefox84 | --- | unaffected |
| firefox85 | + | verified |
| firefox86 | --- | verified |
People
(Reporter: fdiciocco, Assigned: adw)
References
(Regression)
Details
(Keywords: regression)
Attachments
(3 files)
|
553.33 KB,
video/mp4
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
7.97 KB,
patch
|
jcristau
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
[Sugested Severity:]
S3
[Description:]
when I remove search shortcuts in a particular order and then press "Restore Default Search Engines", Bookmarks, Tabs, and History are removed forever.
[Steps:]
- Open Firefox with a new profile.
- Go to about:preferences#search
- Remove two search shortcuts immediately above Bookmarks
- Remove the rest of bookmarks from top to bottom. It's important to press remove twice or thrice after removing all possible search engines.
- Hit Restore Default Search Engines
[Actual result:]
Search engines are restored but bookmarks, tabs, and history are lost forever
[Expected result:]
Search engines are restored and bookmarks, tabs, and history are kept
Comment 1•6 months ago
|
||
Drew, could you have a look and prioritise this?
Comment 2•6 months ago
|
||
If I close and reopen preferences, the buttons appear again, so it's not a permanent loss.
| Reporter | ||
Comment 3•6 months ago
|
||
That's true. But I have to click on "restore default search engines" again to recover the search engine that wasn't restored before. Because with the str from above you lose the bookmarks, tabs, and history, AND one of the default search engines.
| Assignee | ||
Comment 4•6 months ago
|
||
Yeah that's not good.
| Assignee | ||
Comment 5•5 months ago
|
||
The problem is that a few sites assume that lastIndex is the index of the last
engine in the tree, but since bug 1657790 landed, lastIndex is now the index
of the last local shortcut.
Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/caf10909f9c6 In the search preferences UI, fix tree view problems that arise when engines are removed and restored due to the local shortcuts being present. r=mak
Comment 7•5 months ago
|
||
| bugherder | ||
| Reporter | ||
Comment 8•5 months ago
|
||
Hi, I verified this on 86.0a1 (2020-12-23) (64-bit).
Regards, Flor.
| Assignee | ||
Updated•5 months ago
|
| Assignee | ||
Comment 9•5 months ago
|
||
[Tracking Requested - why for this release]:
This bug regresses the behavior of the "Restore Default Search Engines" and "Remove" buttons in the search preferences UI in certain conditions, and the regression is due to bug 1657790, so I'll mark it as such. The regression is present on 85, and the ability to remove and restore search engines is important, so I think we should track this. As Marco points out, the buggy behavior goes away once you close and reopen the preferences, but that's not obvious. I'll request uplift next.
| Assignee | ||
Updated•5 months ago
|
| Assignee | ||
Comment 10•5 months ago
|
||
Approval Request Comment
[Feature/Bug causing the regression]:
Bug 1657790
[User impact if declined]:
In some cases when users remove search engines in the preferences UI, the "Restore Default Search Engines" and "Remove" buttons will not work correctly, and the list of engines will not be accurate.
[Needs manual test from QE? If yes, steps to reproduce]:
Already verified (comment 8)
[Is the change risky?]:
Low risk
[Why is the change risky/not risky?]:
The patch is small and only updates one variable used to track the index of the last engine in the list. It has a test and has been verified on Nightly, and I've locally verified this Beta patch.
Updated•5 months ago
|
Updated•5 months ago
|
Comment 11•5 months ago
|
||
Comment on attachment 9194552 [details] [diff] [review]
Beta 85 patch
approved for 85.0b5
Changing the priority to p1 as the bug is tracked by a release manager for the current beta.
See What Do You Triage for more information
Comment 13•5 months ago
|
||
| bugherderuplift | ||
| Reporter | ||
Comment 14•5 months ago
|
||
Hi,
I just verified this on Win 10 on FF beta 85.0b5 (64-bit). It works ok, the bug is fixed.
Regards, Flor.
Description
•