Open Bug 251784 Opened 20 years ago Updated 2 years ago

[meta] page not scrolled to previous position when navigating session history

Categories

(Core :: DOM: Navigation, defect)

defect

Tracking

()

People

(Reporter: bmo, Unassigned)

References

(Depends on 3 open bugs, Blocks 1 open bug)

Details

(Keywords: meta)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040603 Firefox/0.8.0+
Build Identifier: 

meta bug to track all the bugs that cause this symptom

Reproducible: Always
Steps to Reproduce:
Blocks: 217120, 236971, 238195
Depends on: 240511
Assignee: general → chofmann
Component: Browser-General → Tracking
QA Contact: general → chofmann
Blocks: 47350
Summary: window is not scrolled to previous position when navigating to different pages in history → [meta] page not scrolled to previous position when navigating session history
Blocks: 164421
Confirming meta bug.
Status: UNCONFIRMED → NEW
Depends on: 43114
Ever confirmed: true
Blocks: 215405
Blocks: 204364
No longer blocks: 215405
Depends on: 215405
Correcting dependency order for remaining bugs tracked (I'd already correct bug
215405).

A tracking bug depends on all of the bugs it tracks - it doesn't block them. 
Only when the tracked bugs are fixed, can the tracking bug itself be considered
resolved.

Bug 164421, however, does remain as one that this bug actually does block.  (Bug
164421 will not be resolved until this tracking bug is resolved.)
No longer blocks: 47350, 204364, 217120, 236971, 238195
Depends on: 47350, 204364, 217120, 236971, 238195
This bug, and in particular 217120, really make the browser disfunctional for
people who navigate sites such as eBay. While there is a workaround (using the
center mouse button to open a new tab when getting item data) it is kludgy and slow.

People continuing to use Firefox when this bug affects them have a special
dedication, or a singular dislike of the alternative browser.
Depends on: 210992
Adding another bug. Although it was maked as a duplicate, I wanted to include it
for the sake of completeness.
Depends on: 156306
Depends on: 299789
Depends on: 322168
Depends on: 361380
Particularly noticeable in scrolling thru ebay listings. Noticed that in a long list, the minimum return point was about 4 lines lower upon return. As the the scrolling got further down in the list, the return point got greater, as much as a whole screen once. Since I practically make a living trading on ebay, this really slows me down. I have noticed this happening in the last 2 versions of Firefox.
claud: what you're reporting may be bug 43114, but if you aren't sure, please file a new bug.  in any case, this tracking bug isn't the place to discuss specific bugs.

if you do file i new bug, let us know here and it will be added to this tracking bug as a blocker.

thanks,
marc
of interest:
Bug 378606 – [FIX]Does not return to the scroll position in the page after reload 
Depends on: 378606
Not sure if this should be a dupe of bug 36539 or not.
Depends on: focushist
Blocks: focushist
No longer depends on: focushist
aaron: this bug is a meta bug to track bugs that cause scroll position to not be restored correctly.  bug 36539 is accessibility-related and is about remembering where we were so keyboard navigators can pick up where they left off.  they aren't dupes.  i switched this to block bug 36539 instead of vice versa.
Blocks: 411919
Blocks: 356516
Depends on: 851445
Depends on: 1008190
Depends on: 1265818
Component: Tracking → Document Navigation
Is this really still an issue? Seems it still isn't behaving the way other browsers do: 

1. Go here: http://scroll-back-bug.surge.sh/
2. Scroll to bottom click link
3. Click back button

Expected: 

Scrolls back to bottom (this is what Chrome, Safari, and Edge do)

Actual: 

Stays scrolled to top
This is a metabug, so commenting here is not that useful. That specific page does `document.body.scrollTop = 0`, though...
@bori(In reply to Boris Zbarsky [:bz] (no decent commit message means r-) from comment #11)
> This is a metabug, so commenting here is not that useful. That specific page
> does `document.body.scrollTop = 0`, though...

Hey Boris, thanks for responding! So, the thing is that code only runs when the app changes the URL, not when you click "back", you can verify that by putting a breakpoint on that line. It will run when you click the link, but not when you click "back".

Also where should I be commenting? This is behavior is inconsistent between browsers and seems like a problem for PWAs and all single page apps.
> Also where should I be commenting?

New bug blocking this one.  Please cc me.
Depends on: 1444170

The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.

Assignee: chofmann → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.