Closed Bug 1648398 Opened 4 years ago Closed 2 years ago

history.scrollRestoration 'manual' is broken

Categories

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

77 Branch
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: impressive.webs, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36

Steps to reproduce:

Visit the following page: https://www.impressivewebs.com/demo-files/scroll-restoration-manual/

This page sets the history.scrollRestoration property to 'manual'.

Scroll down the page to the link in item 86. Navigate to another page, then use the back button to return to the previous page.

Actual results:

The previous page's scroll position is restored (i.e. item 86 is visible again).

Expected results:

The previous page's scroll position should be reset and not restored to the previous scroll position.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core

Alphan: can you please have a brief look at this and triage it?

Flags: needinfo?(alchen)

I tried FF 50.a1/61.a1.
The behavior is the same as what we have now.

Visit the following page: https://www.impressivewebs.com/demo-files/scroll-restoration-manual/
This page sets the history.scrollRestoration property to 'manual'.
Scroll down the page to the link in item 86.

history.scrollRestoration is 'manual'

Navigate to another page.

history.scrollRestoration is 'auto'


I think Olli may know more about it.
The API is implemented in bug 1155730.
This symptom may be related to bug 12370755.

Flags: needinfo?(alchen) → needinfo?(bugs)
Component: DOM: Core & HTML → DOM: Navigation

Is session restore failing to restore history.scrollRestoration 'manual'?

P3/S3

I can reproduce this bug, though enabling Fission makes the bug go away. Is Fission fixing the bug or masking it because Fission disables bfcache or has a history bug? Should we track this bug for Fission?

(In reply to Alphan Chen [:alchen] from comment #2)

I tried FF 50.a1/61.a1.
The behavior is the same as what we have now.

I'm removing the regression tag based on Alphan's testing of old versions.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Summary: history.scrollRestoration API not working → history.scrollRestoration 'manual' is broken

This is working as expect in browsers which support bfcache.

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(smaug)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.