Closed Bug 1572329 Opened 5 years ago Closed 4 years ago

Show History dropdown from Address Bar in Browsing History mode does not allow the deletion of the top item

Categories

(Firefox :: Address Bar, defect, P3)

68 Branch
defect
Points:
1

Tracking

()

RESOLVED FIXED
Firefox 79
Iteration:
79.2 - June 15 - June 28
Tracking Status
firefox-esr68 --- wontfix
firefox-esr78 --- wontfix
firefox77 --- wontfix
firefox78 --- wontfix
firefox79 --- verified

People

(Reporter: adamtokarsky, Assigned: adw)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0

Steps to reproduce:

Using Firefox Quantum 68.0.1 (64-bit), with the setting in Options: Privacy & Security: Address Bar set to Browsing History only, click the Show History down-arrow button in the Address Bar. Down arrow key to highlight the top suggested entry. Press shift+delete. Press it a second time just to make sure you didn't hit the wrong keys.

Actual results:

Top entry is not deleted from list.

Expected results:

Top entry should be deleted from the list.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Address Bar

Thanks for reporting this. Happens in Nightly too. This error is logged:

Failed to find the selected result in the results
    _handleDeleteEntry resource:///modules/UrlbarController.jsm:563
    handleKeyNavigation resource:///modules/UrlbarController.jsm:370
    _on_keydown resource:///modules/UrlbarInput.jsm:1727
    maybeDeferEvent resource:///modules/UrlbarEventBufferer.jsm:157
    _on_keydown resource:///modules/UrlbarInput.jsm:1726
    handleEvent resource:///modules/UrlbarInput.jsm:353
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Priority: -- → P2
Regressed by: quantumbar-release

I can't reproduce this on 77 or the current Nightly. The UX has changed since this was filed, but you can get the list of frecent history by typing ^ or space in the urlbar. Shift-delete on the first history result successfully deletes it. You can't delete the search result but that's by design.

If you can still reproduce this, please comment here, thanks.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME

Bug still present in 77.0.1 (64-bit), running Windows 10, though the method no longer involves the "Show History" button--instead, clicking in empty space of the URL bar is sufficient to show the same menu.

That menu is a little different. Previously it showed your most frecent sites from history, but now it shows your "top sites" from about:newtab. Those sites can't be deleted by Shift-Delete. Off hand I'm not sure whether that's by design or an oversight, but it's not the same bug as the original one, which happened due to a coding error.

The sites from that menu can, in fact, be removed from the list with shift+delete.

Except for the top one.

I can resubmit as a new bug if that's prudent.

We must not be talking about the same thing. I don't want to close your bug if it's still happening. Would you mind providing specific steps to reproduce the problem now so I can try to reproduce it too?

Sure.

Initial state: https://imgur.com/2MyY1Jg
Move mouse to the center of the poorly-drawn X. Left-click. Result: https://imgur.com/yWjfyeR
Down-arrow key five times. Result: https://imgur.com/vTmEgUp
Shift+delete. Result: https://imgur.com/0VvqdvQ
Up-arrow key four times. Result: https://imgur.com/936CA7O (Don't mind the extra result at the bottom of the list; it populated to fill the gap as I was pasting/cropping back and forth)
Shift+delete. Result (no change): https://imgur.com/Hrnvo8i

Thanks, I think I know what's happening. You've removed the top sites from your new tab, right? So you are in fact seeing the old history view, which still has the problem, which I can still reproduce. The stack is the same as in comment 2 but the line numbers have changed:

Failed to find the selected result in the results UrlbarController.jsm:598
    _handleDeleteEntry resource:///modules/UrlbarController.jsm:598
    handleKeyNavigation resource:///modules/UrlbarController.jsm:386
    _on_keydown resource:///modules/UrlbarInput.jsm:2251
    maybeDeferEvent resource:///modules/UrlbarEventBufferer.jsm:157
    _on_keydown resource:///modules/UrlbarInput.jsm:2250
    handleEvent resource:///modules/UrlbarInput.jsm:372
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Severity: normal → S3
Status: REOPENED → NEW
Priority: P2 → P3

Oh man, this is due to a simple error. We're checking index == 0 when we should be checking index < 0: https://searchfox.org/mozilla-central/rev/0e09b9191c02097034e46b193930f91c45b7885d/browser/components/urlbar/UrlbarController.jsm#603

I'll fix this real quick.

Assignee: nobody → adw
Iteration: --- → 79.1 - June 1 - June 14
Points: --- → 1
Blocks: 1506126

Neat! Also, you are correct--the only box I have checked for that setting is Highlights.

Well, "Highlights," and "Visited Pages" under it.

Hmm, recently we changed it so we show "top sites" even when you've removed them from new tab, in bug 1634279 and bug 1623666. I'm not actually sure whether there's any way to trigger the old history view anymore. This comment suggests not. If there isn't, then I don't see how this bug can happen anymore. But we should still fix this error.

So if you disabled top sites on new tab because you didn't want to see them in the urlbar, that's bad news I guess.

See Also: → 1623666

AFAICT this bug isn't reproducible anymore after bug 1623666. i.e., it's no
longer possible to show the history view. You can still see a history-like view
by typing ^ or a space, but in that case the first result is a search result,
not a history result, so it can't be deleted anyway. Nevertheless we should fix
this error.

I'm not sure precisely what settings you're referring to with this Top Sites stuff, but I've taken the liberty of screengrabbing a number of potentially-relevant Options settings ( https://imgur.com/a/fxnfmfM ) to make them available for analysis if you so desire. If you'd like to go deeper on this it seems we should divert to another thread; I'll follow your lead on how(/if) to proceed with this line of inquiry.

Thanks, I was just describing the problem in technical terms. But in summary, we have two different lists of "top sites" and they're not exactly the same. One is the list that's on the new tab page. The other is the one that you've screenshotted in this bug. Firefox has shown the second list in the urlbar forever, for example when you click the arrow button that you mentioned in comment 0 (and that no longer exists). We've basically deprecated the second list in favor of the first so that there is a single list of top sites in all of Firefox.

Iteration: 79.1 - June 1 - June 14 → 79.2 - June 15 - June 28
Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/49daf897f76c Fix error that prevented the top history result from being deleted. r=mak
Status: NEW → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 79
Flags: qe-verify+

Confirmed issue with 78.0 on Windows 10.
Fix verified with 79.0b3 on Windows 10, macOS 10.15.5, Ubuntu 18.

Flags: qe-verify+
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: