Closed Bug 1673129 Opened 5 years ago Closed 5 years ago

pressing the spacebar on the Downloads panel is both page-down and toggle-pause

Categories

(Firefox :: Downloads Panel, defect, P3)

defect
Points:
3

Tracking

()

VERIFIED FIXED
86 Branch
Tracking Status
firefox86 --- verified
firefox87 --- verified

People

(Reporter: tomprogers, Assigned: tanner.drake)

Details

(Keywords: good-first-bug)

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36

Steps to reproduce:

  1. have several completed downloads in the Downloads Panel
  2. start a new long-running download (2-min or more)
  3. use pointer to select the in-progress download in the the Downloads Panel
  4. press keyboard spacebar

Actual results:

download pauses AND list of downloads scrolls down one viewport-length

Expected results:

either the download should be pause OR the list should scroll, but not both

Component: Untriaged → DOM: UI Events & Focus Handling
Product: Firefox → Core

These large test files can be used to attempt to reproduce the issue.

Couldn't reproduce it with Ubuntu 18.04 and current Nightly.

I can with 84.0a1 (2020-10-23) (64-bit) on macOS.

Status: UNCONFIRMED → NEW
Component: DOM: UI Events & Focus Handling → Downloads Panel
Ever confirmed: true
Product: Core → Firefox
Version: Firefox 81 → Trunk

This is apparently handled here, we should probably preventDefault() or stopPropagation() on the event, or the richlistbox will also try to handle it
https://searchfox.org/mozilla-central/rev/d866b96d74ec2a63f09ee418f048d23f4fd379a2/browser/components/downloads/content/downloads.js#859-861
the most complex part of the fix may actually to write a test, there's not many downloads tests, but some can be found under https://searchfox.org/mozilla-central/source/browser/components/downloads/test/browser

Severity: -- → S3
Points: --- → 3
Keywords: good-first-bug
Priority: -- → P3

I can work on this.

Assignee: nobody → tanner.drake
Status: NEW → ASSIGNED

ah I didn't mean to create a new revision. Is it possible to delete the old one? or delete the new one and I can patch the old one?

yes, you can amend changes to a changeset (using hg amend, I suggest using the evolve hg extension), merge changesets using hg rebase --collapse.
You can also mark an attachment as obsolete in Bugzilla and abandon a revision in Phabricator.
If you ran mach bootstrap, it should have also created an "hg wip" command that helps you seeing your changesets dependencies easily,

Attachment #9196853 - Attachment is obsolete: true
Pushed by mak77@bonardo.net: https://hg.mozilla.org/integration/autoland/rev/6ddab48a0544 Prevent all downloads view from scrolling when toggling download resume pause state. r=mak
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch

I managed to reproduce the issue using an oldere version on Nightly (2020-10-23) on Windows 10 x64.
I retested everything using Nightly 87.0a1 and Firefox 86.0b5 on Windows 10 x64, Ubuntu 18.04 x64 and macOS 10.13. The issue is not reproducing anymore.

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

Attachment

General

Creator:
Created:
Updated:
Size: