"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: florencia.diciocco, Assigned: adw)
References
(Regression)
Details
(Keywords: regression)
Attachments
(3 files)
(deleted),
video/mp4
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
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•4 years ago
|
||
Drew, could you have a look and prioritise this?
Comment 2•4 years ago
|
||
If I close and reopen preferences, the buttons appear again, so it's not a permanent loss.
Reporter | ||
Comment 3•4 years 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•4 years ago
|
||
Yeah that's not good.
Assignee | ||
Comment 5•4 years 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.
Comment 7•4 years ago
|
||
bugherder |
Reporter | ||
Comment 8•4 years ago
|
||
Hi, I verified this on 86.0a1 (2020-12-23) (64-bit).
Regards, Flor.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 9•4 years 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.
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 10•4 years 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•4 years ago
|
Updated•4 years ago
|
Comment 11•4 years ago
|
||
Comment on attachment 9194552 [details] [diff] [review]
Beta 85 patch
approved for 85.0b5
Comment 12•4 years ago
|
||
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•4 years ago
|
||
bugherder uplift |
Reporter | ||
Comment 14•4 years 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
•