When returning to previous page, page is scrolled to top
Categories
(Core :: DOM: Navigation, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox69 | --- | affected |
People
(Reporter: mbrodesser-Igalia, Unassigned)
Details
STR:
- Open https://searchfox.org/mozilla-central/source/dom/base/TimeoutHandler.cpp#133-136
- Click on some link.
- Press "Alt" and "<-" to return to previous page.
Expected:
page is scrolled to same line as before.
Actual:
page is scrolled to the top.
Happens with current Nighty. Doesn't happen with FF 67.
Comment 1•5 years ago
|
||
WFM on latest nightly on Mac (2019-06-24).
Reporter | ||
Comment 2•5 years ago
|
||
Retried with latest Nightly, still doesn't work. Using Ubuntu 18.04.
Updated•5 years ago
|
Comment 3•5 years ago
|
||
works for me on Mac using latest nightly 70.0a1 (2019-08-07) (64-bit).
Nika, do you see this on ubuntu?
Comment 4•5 years ago
|
||
By default this works for me on my local install as well.
However, I believe I know what the source of the issue is. The issue only reproduces if the URL being navigated back to is not in the bfcache. This can happen if, for example, there is memory pressure at the time.
You can reproduce this more reliably with the following STR:
- Open https://searchfox.org/mozilla-central/source/dom/base/TimeoutHandler.cpp#133-136
- In the DevTools console, type
window.onbeforeunload = () => {}
, and press enter - Click on the "HG Web" link
- Press "Alt" and "<-" to return to previous page.
The page will incorrectly scroll to the top.
Updated•5 years ago
|
Reporter | ||
Comment 5•5 years ago
|
||
For power-uses of searchfox, this is pretty annoying. On Ubuntu 18.04 this problem always occurs. It does work on Chrome though.
Reporter | ||
Updated•5 years ago
|
Updated•4 years ago
|
Reporter | ||
Comment 7•3 years ago
|
||
On my machine (Linux) this works nowadays with FF 92 and current Nightly.
Comment 8•2 years ago
|
||
This seems to work now.
Description
•