Closed Bug 1917726 Opened 2 years ago Closed 1 year ago

Page unexpectedly shifts when trying to scroll subframe (with toolbar-on-top)

Categories

(Firefox for Android :: Browser Engine, defect)

All
Android
defect

Tracking

()

RESOLVED FIXED
146 Branch
Tracking Status
firefox146 --- wontfix
firefox147 --- fixed

People

(Reporter: mstange, Assigned: ajakobi)

References

(Depends on 2 open bugs, Blocks 2 open bugs)

Details

Attachments

(4 files)

Attached video screen recording —

Steps to reproduce:

  1. Go to this bus timetable page, or any page which has a vertically-scrollable subframe on a vertically-scrollable page.
  2. Scroll down the outer page until you see the subframe / the bus timetable. (This hides the dynamic toolbars.)
  3. In the bus timetable, scroll down a little bit, and then scroll up a little bit.

Expected results:
The outer page should remain the way it was, only the subframe should be scrolled.

Actual results:
When scrolling up inside the subframe by just the tiniest amount, the toolbars reappear fully, and cause the entire page to shift down. This is very disorienting.

In the attached screen recording, I was reading the second row of the table, and wanted to scroll back up to the first row ("Westport Railway Station"). But the page shifted so that both row 1 and row 2 are now hidden!

Think this is assumed but wanted to confirm, this is happening because we get an inputResultDetail which says that the website handled the scroll.

Seems like a good ticket to add to the meta for tracking issues before moving to use scroll data to drive the dynamic toolbar - bug 1915640.
Though now I'm thinking that rather bug 1893221 should be blocking the new meta? That would be so meta! 😏

Blocks: 1895538

The severity field is not set for this bug.
:boek, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jboek)

The Bugbug bot thinks this bug should belong to the 'Fenix::Toolbar' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Toolbar

There are two parts to this bug: the page unexpectedly shifting, and the toolbar unexpectedly appearing.
Bug 1921331 is expected to fix the first part. Bug 1914119 is expected to fix the second part.

Depends on: 1921331, 1914119
Flags: needinfo?(jboek)
Severity: -- → S3
Component: Toolbar → Browser Engine

I've noticed when reproducing the bug (Android emulator on macOS), that gently starting the scroll in the subframe does not trigger the bug.

Assignee: nobody → ajakobi
Status: NEW → ASSIGNED
Pushed by ajakobi@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8685eaf79f20 https://hg.mozilla.org/integration/autoland/rev/8599d87619b8 Don't force-expand toolbars during gestures that resemble a scroll up gesture. r=mstange,android-reviewers,petru
Pushed by chorotan@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3d47ff163f96 https://hg.mozilla.org/integration/autoland/rev/9dc631489700 Revert "Bug 1917726 - Don't force-expand toolbars during gestures that resemble a scroll up gesture. r=mstange,android-reviewers,petru" for causing build components build bustage at EngineViewScrollingBehaviorTest

Backed out for causing build components bustage at EngineViewScrollingBehaviorTest

Backout link

Push with failures

Failure log

Flags: needinfo?(ajakobi)

Will check.

Flags: needinfo?(ajakobi)

Comment on attachment 9517736 [details]
Bug 1917726 - Don't force-expand toolbars during gestures that resemble a scroll up gesture. r=mstange,#android-reviewers

Revision D266354 was moved to bug 1945945. Setting attachment 9517736 [details] to obsolete.

Attachment #9517736 - Attachment is obsolete: true
Attachment #9517736 - Attachment is obsolete: false
Pushed by ajakobi@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d9bfbc144e79 https://hg.mozilla.org/integration/autoland/rev/8bc2e22d7ebb Don't force-expand toolbars during gestures that resemble a scroll up gesture. r=mstange,android-reviewers,petru
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch
Regressions: 1999407

Confirming I can back this out of 146 beta , leave in 147 nightly and give bug 1999407 more time for a fix?

Flags: needinfo?(ajakobi)

Yes, please go ahead an back out. Thanks for your help.

Flags: needinfo?(ajakobi)

Backed out for 146.0b7 but stays in 147 waiting on a fix (which will be done in bug 2001536)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: