Bug 262589 - REGRESSION (Safari 17): Scroll position not restored on page back after case-sensitive navigation
Summary: REGRESSION (Safari 17): Scroll position not restored on page back after case-...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Safari 17
Hardware: Mac (Apple Silicon) macOS 13
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-03 17:00 PDT by Jeff Johnson
Modified: 2023-12-15 09:31 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Johnson 2023-10-03 17:00:52 PDT
Steps to reproduce:
1. Open https://www.reddit.com/r/askreddit/ in Safari 17
2. Scroll down the page
3. Click on a link to open an article
4. Click the back button in the toolbar

Expected results: The previous scroll position is restored.

Actual results: The scroll position is at the top of the page.

Discussion:
This bug occurs in Safari 17 but not in Safari 16.

The bug does not occur if you open https://www.reddit.com/r/AskReddit/ in step 1.

I'm having difficulty producing a reduced test case, because I'm using a Mac, which has a case-insensitive file system. What's happening on Reddit is that it calls window.location.replace("/r/AskReddit/") to redirect from the lowercase /r/askreddit/, which seems to be the cause of the bug in Safari 17.
Comment 1 Radar WebKit Bug Importer 2023-10-04 13:19:15 PDT
<rdar://problem/116482078>
Comment 2 Chris Dumez 2023-12-15 08:27:49 PST
This didn't reproduce for me on Safari 17.2.
Comment 3 Jeff Johnson 2023-12-15 09:04:16 PST
Hmm, I can't reproduce it anymore either.

I don't know whether that's due to Safari changing or Reddit changing.
Comment 4 Chris Dumez 2023-12-15 09:31:02 PST
Works for me and Nick. Not sure if the fix was on server side or WebKit side.