Closed Bug 1525948 Opened 5 years ago Closed 5 years ago

Scroll position persists after clicking on a link

Categories

(Firefox for Android Graveyard :: General, defect)

Firefox 67
ARM
Android
defect
Not set
normal

Tracking

(firefox65 unaffected, firefox66 unaffected, firefox67 verified)

VERIFIED FIXED
Firefox 67
Tracking Status
firefox65 --- unaffected
firefox66 --- unaffected
firefox67 --- verified

People

(Reporter: csheany, Assigned: botond)

References

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

User Agent: Mozilla/5.0 (Android 7.1.1; Tablet; rv:67.0) Gecko/67.0 Firefox/67.0

Steps to reproduce:

  1. Open https://github.com/mozilla-mobile/focus-android
  2. Request desktop site
  3. Tap Commits
  4. Scroll to the bottom
  5. Tap Older

Actual results:

The bottom of the page is in view

Expected results:

The top of the page is in view

Regression compared to Firefox 65.

I can't reproduce at all on my Android phone.

I was testing on a tablet. I just tried on a phone, and I can't repro there either. Guess it's tablet-specific.

I couldn't reproduce this issue on the latest Nightly build 67.0a1 with a Google Pixel 3 XL (Android P) and Sony Xperia Z5(Android 7.0).
Every time when I tapped on the older the top page was in view. I tried to reproduce this while the web page was zoomed in but with not so much success.
Can you please mention the exact device, android version and firefox version that are you using while reproducing this issue.

Flags: needinfo?(csheany)

Thank you for looking into it. The device is a Samsung Galaxy Tab A.

I am using the latest Nightly.

As Botond mentioned, only tablets might be affected.

Flags: needinfo?(csheany)

Hi,
I was able to reproduce the issue with a Samsung Galaxy Tab S3, on Firefox 65.0.1, and Beta 66.0b7.
But I was not able to reproduce it on the latest Nightly 67.0a1 (2019-02-12).
I will confirm the issue.
Thanks for the report!

Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → Android
Hardware: Unspecified → ARM

I'm confused on how to rectify comment 2 with comment 7. Can someone please try to explain?

Flags: needinfo?(mirabela.lobontiu)
Flags: needinfo?(botond)

Mira, can you help with a regression?

I think comment 7 may be confusing the "good" and "bad" outcomes.

The scroll position being at the top of the new page, which happens in 65 and 66, is the "good" outcome. The scroll position being near the bottom of the new page, which happens in nightly, is the "bad" outcome.

It's a bit confusing because if navigation does not occur, you expect the scroll position to be preserved. If navigation does occur (as in these STR), you expect the scroll position to be at the beginning of the new page.

Flags: needinfo?(botond)

I'll go with that, thanks :)

Has Regression Range: --- → yes
Flags: needinfo?(mirabela.lobontiu)
Summary: Scroll posititon persists after clicking on a link → Scroll position persists after clicking on a link

I will see what's going on there.

Flags: needinfo?(hikezoe)

I suppose we still want to fix this in 67.

Anyway, I thought I can reproduce the issue on RDM with specifying 'Nexus 10' there (and enabling apz.allow_zooming pref). But the issue I can see is also reproducible without disabling the minimum scale change. So the issue I am seeing might be a different issue.

I also tried on Android emulator with tablet mode (I believe it's tablet mode, I am using 1280x800 resolution), but I can't reproduce it yet.

Thank you Botond, I was misguided by the "good" and "bad" outcome.
I rectify Comment 7, the issue is reproducible only in Nightly 67.0a1.
Thank you, Ryan, for changing the flags.
I`m sorry for the confusion.

Let's park this bug with me as I'm able to reproduce it. I will investigate when I get a chance.

Assignee: nobody → botond
Flags: needinfo?(hikezoe)

The issue here is related to the layout viewport being larger than it should be on this page. The layout viewport size should match the visual viewport size when the page is at its minimum zoom, but on this page it's taller, tall enough to include the entire content size.

I have a fix for this locally. I would like to write a test as well.

Depends on D19996

Attachment #9044294 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 67

Verified as fixed on latest Nightly build (67.0a1) with Samsung Galaxy Tab S3 (affected device).

Status: RESOLVED → VERIFIED
Regressions: 1542933
Regressions: 1542652
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: