Remove the best match row from the view when the user clicks the block button
Categories
(Firefox :: Address Bar, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox99 | --- | verified |
People
(Reporter: adw, Assigned: daisuke)
References
()
Details
Attachments
(1 file)
When the user clicks the block button in the best match row, the row should be removed from the view immediately and the view should remain open. This is exactly like how the user can press Shift-Delete to remove history rows from the view, which is implemented in UrlbarController._handleDeleteEntry() -- see especially this line, which does this:
this.notify(NOTIFICATIONS.QUERY_RESULT_REMOVED, index);
So clicking the block button should send this notification, and hopefully that's enough and it should just work.
Notes:
- This depends on the block button (bug 1754588)
- The spec calls for block buttons on best match rows only, but there's no reason to limit the implementation in this bug to only best matches. It should be able to support all quick suggest rows, unless I'm missing something obvious
- In addition to the block button, we could handle Shift-Delete on best match rows pretty easily too. I'll ask Ryan about that
Reporter | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Comment 3•4 years ago
|
||
bugherder |
Reporter | ||
Comment 4•4 years ago
|
||
STR for QA:
- Enable Firefox Suggest
- Enable best match by setting
browser.urlbar.bestMatch.enabled
to true - Type "amazon" to trigger a best match
- Pick the thumbs-down block button in the best match using the keyboard
- Verify the best match row disappears
- Repeat steps 4 and 5 but use the mouse to pick the block button
Note that this bug only removes the row for a single search session. The row will come back if you trigger another search. Blocking the suggestion permanently will be handled by another bug.
Comment 5•3 years ago
|
||
I have verified this issue on the latest Nightly 99.0a1 (Build ID: 20220220215821) on Windows 10 x64. macOS 10.15.7 and Linux Mint 20.
- In order to verify this issue we have used the STR from comment 4.
- The Best Match result is successfully dismissed by clicking the "thumbs-down" button or using keyboard navigation.
- After the result is dismissed the next result is focused.
Description
•