Closed Bug 1861527 Opened 3 years ago Closed 2 years ago

Firefox View "Recent Browsing" section is unexpectedly scrolled-to-the-bottom, if you've scrolled down in another section before switching to it (also "Tabs from other devices" if you're signed in to Sync)

Categories

(Firefox :: Firefox View, defect, P3)

defect

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox121 --- wontfix
firefox122 --- fixed

People

(Reporter: dholbert, Assigned: nsharpley)

References

Details

(Whiteboard: [fidefe-firefox-view])

Attachments

(2 files, 1 external file)

STR:

  1. Start Firefox with a fresh profile (just for a consistent starting-point)
  2. Open a second Firefox window with a bunch of tabs (hold down Ctrl+T for a few seconds in the second window; this is in service of creating room-to-scroll in step 5).
  3. Back in your first Firefox window, click the "Firefox View" icon.
  4. Click "Open Tabs"
  5. Scroll down to the end of that page.
  6. Click "Recent Browsing"

ACTUAL RESULTS:
When you change to the Recent Browsing section, you're unexpectedly scrolled to the bottom of that section.

EXPECTED RESULTS:
I should be scrolled to the top.

It seems like we're preserving/transferring the scroll state somehow?

Interestingly, this doesn't happen for every Firefox View category-button -- only when switching to "Open Tabs", but not e.g. to the History section. (if I'm signed in to Sync, then it also happens when I switch to the "Tabs from Other Devices" section.)

I'm using Firefox 121.0a1 (2023-10-26) (64-bit) on Ubuntu 22.04.

Summary: Firefox View "Recent Browsing" and "Tabs from other devices" sections are unexpectedly scrolled-to-the-bottom, if you've scrolled down in another section before switching to them → Firefox View "Recent Browsing" section is unexpectedly scrolled-to-the-bottom, if you've scrolled down in another section before switching to it (also "Tabs from other devices" if you're signed in to Sync)
Attached video screencast of bug —

In the screencast, notice that around t=8s and afterward, the Recent browsing content is scrolled to the top.

The I switch to Open tabs in the left sidebar, and scroll down in that UI. And then when I switch back to Recent browsing (at t=14s), it's unexpectedly scrolled to the bottom.

One additional zoom-specific (I think?) symptom of probably the same underlying issue:

For some reason, if I zoom in to 130% zoom level and then perform the STR, then when I reach the end and see the bottom of the Recent browsing section, we show the scrollbar as being halfway-scrolled-down, even though I'm really scrolled to the end of that section. I'll attach a screencast to demonstrate that.

Here's a screencast of the thing I described in comment 3.

As you can see at the start of the screencast, the "normal" behavior (given my Firefox-session state) is to have a fairly large (and nicely-behaving) scrollbar thumb for the Recent browsing section. But if I folllow this bug's STR (while zoomed in at 130% as in this screencast, with ctrl+mouswheel), the scrollbar thumb ends up smaller and jumps around unexpectedly, e.g. sometimes jumping to the middle of the track when in fact we're scrolled to the end. This badness starts at around t=11s in the screencast.

See Also: → 1861529
Whiteboard: [fidefe-firefox-view]
Severity: -- → S4
Priority: -- → P3

Interesting, thanks for the bug. We have some refactoring work going on for open tabs so it's probably worth evaluating this after that has happened.

  • added window.scrollTo(0, 0) to change-category event listener callback
Assignee: nobody → nsharpley
Status: NEW → ASSIGNED
Pushed by sclements@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1ff1d467cb8d On change of category, scroll to the top of the page r=fxview-reviewers,kcochrane
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
QA Whiteboard: [qa-122b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: