Scroll bar out of place after rotating from landscape to portrait
Categories
(Firefox for Android Graveyard :: General, defect, P2)
Tracking
(firefox-esr60 unaffected, firefox66 unaffected, firefox67 unaffected, firefox68 verified)
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox66 | --- | unaffected |
firefox67 | --- | unaffected |
firefox68 | --- | verified |
People
(Reporter: csheany, Assigned: bradwerth)
References
(Blocks 1 open bug, Regression, )
Details
(Keywords: regression)
Attachments
(4 files, 1 obsolete file)
User Agent: Mozilla/5.0 (Android 7.1.1; Tablet; rv:68.0) Gecko/68.0 Firefox/68.0
Steps to reproduce:
- Open https://github.com/mozilla-mobile
- Request desktop site
- Rotate to landsacpe
- Rotate to portrait
Actual results:
The scroll bar appears higher than it is supposed to
Expected results:
The scroll bar should be closer to the edge
Also with following STR,
- Open https://github.com/mozilla-mobile
- Zoom in
- Rotate to landscape
Actual results:
The scroll bar appears...
Expected results:
The scroll bar should be closer to the edge
Was this caused by Bug 1536755
See also Bug 1511375
Assignee | ||
Comment 5•6 years ago
|
||
Caused by Bug 1536755. I'll figure it out.
Updated•6 years ago
|
Assignee | ||
Comment 6•6 years ago
|
||
Assignee | ||
Comment 7•6 years ago
|
||
I been trying to reproduce using our Responsive Design Mode on desktop, and have not been successful yet. In doing that, I found a zoom issue with this testcase that is probably part of the solution. I've posted that here while I work on reproducing on Android.
Is the zoom issue you are referring to Bug 1523844/ Bug 1519013?
Assignee | ||
Comment 9•6 years ago
|
||
(In reply to csheany from comment #8)
Is the zoom issue you are referring to Bug 1523844/ Bug 1519013?
Yes, I think my patch is probably addressing Bug 1523844. I'll move the patch over there.
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 11•6 years ago
|
||
It's dependent on Bug 1523844; I'll add a comment on that Bug detailing where it's stuck.
Assignee | ||
Comment 12•6 years ago
|
||
(In reply to Brad Werth [:bradwerth] from comment #11)
It's dependent on Bug 1523844; I'll add a comment on that Bug detailing where it's stuck.
I just attempted to again reproduce Bug 1523844 using my Responsive Design Mode setup and I wasn't able to do it. Something has changed -- not claiming the bug is fixed though I would welcome any retest. I need to move to a proper GeckoView test myself for my next attempt at reproduction.
Comment 13•6 years ago
|
||
(In reply to Brad Werth [:bradwerth] from comment #5)
Caused by Bug 1536755. I'll figure it out.
Brad, what makes you believe this?
Bug 1536755 landed on 2019-03-25, but I can reproduce this issue in the 2019-03-24 nightly.
Comment 14•6 years ago
|
||
Let's get a regression window to see what actually regressed this.
Reporter | ||
Comment 15•6 years ago
|
||
Maybe Bug 1501665?
Comment 16•6 years ago
|
||
(In reply to csheany from comment #15)
Maybe Bug 1501665?
Good guess :)
I have confirmed using mozregression that bug 1501665 is what regressed this.
Updated•6 years ago
|
Comment 17•6 years ago
|
||
Given the similarity of the symptoms to bug 1511375, and the diagnosis and fix for that bug, I suspect https://phabricator.services.mozilla.com/D21287.
Comment 18•6 years ago
|
||
I don't have a spare tree for a local build right now, but I pushed a backout of https://phabricator.services.mozilla.com/D21287 to build on Try:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=fe24f1202276daebda8ed810a22714534fbc4f10
Comment 19•6 years ago
|
||
The bug is indeed fixed in that Try build.
So, I guess the call to UpdateVisualViewportSize
in that patch wasn't unnecessary, after all. I think we can't rely on SetResolutionAndScaleTo
calling UpdateVisualViewportSize
in every case, due to the early exit here.
Assuming that patch isn't needed for a correctness reason, we should probably just back it out.
Assignee | ||
Comment 20•6 years ago
|
||
(In reply to Botond Ballo [:botond] from comment #19)
The bug is indeed fixed in that Try build.
So, I guess the call to
UpdateVisualViewportSize
in that patch wasn't unnecessary, after all. I think we can't rely onSetResolutionAndScaleTo
callingUpdateVisualViewportSize
in every case, due to the early exit here.Assuming that patch isn't needed for a correctness reason, we should probably just back it out.
I agree with this analysis and solution. I'm sorry that I mistakenly claimed that we could early-exit around the call to UpdateVisualViewportSize in that patch. I don't know how to trigger a backout of https://phabricator.services.mozilla.com/D21287. Do I just post a reverting patch as a patch for this bug? I'll assume so unless someone says otherwise.
Comment 21•6 years ago
|
||
(In reply to Brad Werth [:bradwerth] from comment #20)
Do I just post a reverting patch as a patch for this bug?
Yep. (You can create the patch using hg backout
(or git revert
) and then edit its commit message to add in this bug number.)
Assignee | ||
Comment 22•6 years ago
|
||
This change was originally added as a drive-by optimization in Bug 1501665.
The early-exit apparently routes around a needed side effect in the case
where resolution is re-set to its current value.
Assignee | ||
Comment 23•6 years ago
|
||
Assignee | ||
Comment 24•6 years ago
|
||
I'll see if I can craft an effective test as well.
Assignee | ||
Comment 25•6 years ago
|
||
Depends on D28566
Updated•6 years ago
|
Assignee | ||
Comment 26•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 27•6 years ago
|
||
Updated•6 years ago
|
Comment 28•6 years ago
|
||
Comment 29•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f70b79b66592
https://hg.mozilla.org/mozilla-central/rev/9b357ff26675
Comment 30•5 years ago
|
||
Hi, the issue from the description is not reproducible. Checked on build Firefox Nightly 68.1a1(2019-07-10) with device Google Pixel C (Android 8.0.0).
I will mark the ticket as Verified.
Updated•4 years ago
|
Description
•