mozilla-mobile / firefox-ios

Firefox for iOS
Mozilla Public License 2.0
12.2k stars 2.92k forks source link

Scroll position is reset to the top of previous page when navigating back after a specific scenario #18081

Open alinamoldovan84 opened 9 months ago

alinamoldovan84 commented 9 months ago

Steps to reproduce

This issue reproduces intermittently. Using the steps below I was able to reproduce it constantly, but the reproduction steps are not limited to those written by me below.

  1. Open wiki page and search for Italy
  2. Scroll down to ‘Kingdom of Italy’ link and tap on it
  3. Scroll down to ‘League of Nations’ link and tap on it
  4. Scroll down to external links and expend the section
  5. Tap on “history of league of nation” link
  6. Scroll down to the end of the page
  7. Tap Back arrow and check the views

Please note that:

Expected behavior

The scroll position should be restored half way down the page where the tapped link was.

Actual behavior

The scroll position is not restored for the “Kingdom of Italy“ and “Italy“ pages

Device & build information

https://github.com/mozilla-mobile/firefox-ios/assets/124251579/401b00a5-6292-4e5c-919e-2a001c858ae9

https://github.com/mozilla-mobile/firefox-ios/assets/124251579/8e51e531-5907-4aea-a669-a8a2dcca38cd

┆Issue is synchronized with this Jira Task

data-sync-user commented 8 months ago

➤ Matthew Reagan commented:

I believe this is a duplicate (and was fixed by) https://mozilla-hub.atlassian.net/browse/FXIOS-7497 ( https://mozilla-hub.atlassian.net/browse/FXIOS-7497|smart-link ) ? (cc Orla Mitchell Andrei Bodea)

data-sync-user commented 6 months ago

➤ Adina Petridean commented:

This issue is still reproducible on v9000(40522), with iPhone 14 Pro Max (16.2).

mlissner commented 2 months ago

Hi, I see this yes marked as S3, but it's been an open issue for about six months. I don't know what other priorities Firefox has right now, but this is easily the most annoying bug I experience in the browser. It's gotten to where I open every link in a new tab instead of simply clicking links.

It'd be great if this could be fixed.

data-sync-user commented 2 months ago

➤ Matt Reagan commented:

Note: underlying culprit might possibly be related to https://mozilla-hub.atlassian.net/browse/FXIOS-9160 ( https://mozilla-hub.atlassian.net/browse/FXIOS-9160|smart-link ), though these are slightly different bugs.

cc Norberto Andres Furlan