Open Bug 1638186 Opened 4 years ago Updated 4 years ago

After navigating back, DOM changes (eg. jQuery tooltips) trigger jump to top of page

Categories

(Core :: DOM: Navigation, defect, P3)

76 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: paul.geisler, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/81.0.4044.138 Chrome/81.0.4044.138 Safari/537.36

Steps to reproduce:

I open https://trixmix.tv/ . Then I navigate to any sub page. Afterwards I press "back" to return to the start page. I scroll a little and hover any element on the page.

Actual results:

Just as the tooltip for hovered elements appear, the whole page jumps to the top.

This only happens after using "back" and cannot be reproduced on the page otherwise. It can be repaired by reloading the or page internal navigation.

It seems that changing the DOM (as it happens by the tooltip script) would trigger a senseless scroll jump, if and only the page was recreated by navigating back before.

Expected results:

Page shoud keep position if tooltips open even after navigating back, like it does if loaded afresh.

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

Component: Untriaged → DOM: Navigation
Product: Firefox → Core

For me the whole page reloads when going back.
But there is difference to Chrome, since after reload it seems to scroll.

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.