Closed Bug 1933488 Opened 3 months ago Closed 3 months ago

When closing the toolbar while scrolling Google SERP, an empty space with a black background appears

Categories

(GeckoView :: General, defect)

Firefox 134
All
Android
defect

Tracking

(firefox133 wontfix, firefox134 verified, firefox135 verified)

VERIFIED FIXED
135 Branch
Tracking Status
firefox133 --- wontfix
firefox134 --- verified
firefox135 --- verified

People

(Reporter: emanuellclaudiu, Assigned: petru)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [fxdroid][group3])

Attachments

(10 files)

User Agent: Mozilla/5.0 (Android 10; Mobile; rv:135.0) Gecko/135.0 Firefox/135.0

Steps to reproduce:

When closing the toolbar while scrolling, an empty space with a black background appears white collar background appears at the bottom and top covering the screen

Actual results:

Empty space appears when closing the toolbar and when scrolling through the site

Expected results:

Covered space not to appear

It can be verified, I see that this bug is progressing to the official version

Flags: needinfo?(royang)
Flags: needinfo?(cpeterson)

Is this a bug in Fx 133 or 134? Fx 133 is going to the Release channel this week and 134 is going to the Beta channel this week.

Flags: needinfo?(cpeterson)

I can reproduce this bug in Nightly 135 using the old toolbar. I can reproduce when scrolling the Google search results page, but not other sites like Wikipedia. I can't reproduce when using the new toolbar.

I can't reproduce in Fx 133. I can't test Beta 134 because it hasn't be published to the Play Store yet.

Summary: When closing the toolbar while scrolling, an empty space with a black background appears → When closing the toolbar while scrolling Google SERP, an empty space with a black background appears

I can reproduce in 135 Nightly and 134 Beta downloaded from FTP Fenix, probably also in 133 version officially. I can reproduce on all sites with both the old bar and the new bar.

Flags: needinfo?(cpeterson)

I can't reproduce in Fx 133 or Beta 133.0b9. If you can reproduce in 133, then maybe Google is experimenting with multiple versions of the search results page design?

I can reproduce in Nightly 135 using the old toolbar, but not the new toolbar.

Flags: needinfo?(cpeterson)
Attached video NoIssue.mp4

I can't reproduce this on the latest Nightly or on 134b1.

@eclaudiu64 Do you have any secret settings or addons enabled?
Can you post the full URL of the google search? - If looking at the top of the page I have the Google header image plus a profile button but you do not <=> we see different search pages.

Flags: needinfo?(emanuellclaudiu)

Also asking QA for help in understanding the conditions for reproducing this.

Flags: needinfo?(royang) → qe-verify+
Attached video NoIssue2.mp4

Tested more, added another video where I still can't reproduce although I'm being closer to reporter's video - getting results in romanian and the url bar showing the full url instead of just the search term.

I have nothing added, the profile is new, new installation. The first time does not reproduce, but if You have to browse more sites in the same session per tab and open other tabs and scroll each time. Also try to put the android buttons on the original ones and try again.

Flags: needinfo?(emanuellclaudiu) → needinfo?(petru)

I still can't reproduce (on different devices and emulators)
But thinking about what could cause this and seeing at the beginning of eclaudiu64's recording that the "blank space" moves or changes it's height and then also that it has a different colour than the toolbar it seems to me like this is not caused by the the app but it's either

  • unrendered space by GeckoView or
  • rendered as requested by the webpage
Flags: needinfo?(petru)

I think I found a way to reproduce the error: we give the first video in my screenshot and press the fullscreen button and then press the fullscreen button again to exit. Can you try ?

Flags: needinfo?(petru)
Attached video NoIssue3.mp4

(In reply to eclaudiu64 from comment #11)

I think I found a way to reproduce the error: we give the first video in my screenshot and press the fullscreen button and then press the fullscreen button again to exit. Can you try ?

Thank you for this!
Still can't reproduce unfortunately but asked others to help.
The issue might be device specific, can you share the device & Android version that you're seeing this on?

Flags: needinfo?(petru) → needinfo?(emanuellclaudiu)

I can reproduce the error on Samsung Galaxy and Moto G85, Android 11 and Android 13. It doesn't seem to be specific to certain phone models. This error must be reproduced somehow.

Flags: needinfo?(emanuellclaudiu) → needinfo?(petru)

I hope it doesn't make it to the official version, it's already made it to the Beta version.

Flags: needinfo?(petru)
See Also: → 1933227
Attached video OPPO_A15.mp4

I was able to reproduce this issue on Nightly 135.0a1 from 11/28 (with old toolbar enabled) and Beta 134.0b2 on a single device, OPPO A15s (Android 10).
This issue appears to be intermittent: it could be reproduced mostly after performing another search and scrolling through the results, or after changing the toolbar position/theme in Settings, then returning to the search results page and continue scrolling.

Additionally, after some scrolling/searches, I noticed a smaller empty space being displayed above the nav bar and under the address bar (when set to top), depending on the scrolling position.

Attached image smaller_space.jpg
Flags: qe-verify+
Attached image image.png

With great help from Delia (many thanks!) we found out the exact culprit - the patches that enable edge-to-edge support in Fenix - bug 1911042.
Doesn't seem like these themselves cause the issue but rather surface an issue in GeckoView which doesn't fully adapt to the new display viewport and sometimes the rendering remains incomplete.

Pending more investigation we should disable that functionality which in light testing by Delia (many thanks!) showed the issue disappearing.

We'll rely on opting out of edge-to-edge support in the application while
investigating more the effects of us manually handling window insets.

Assignee: nobody → petru
Status: NEW → ASSIGNED
Regressed by: 1911042
Whiteboard: [fxdroid][group3]

Setting status-firefox133 = affected since bug 1911042 shipped in Fx 133.

Severity: -- → S3
Component: Toolbar → General
Product: Fenix → GeckoView
Version: Firefox 133 → Firefox 134
Severity: S3 → S2
Pushed by plingurar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ad0edb519cfd Stop manually handling window insets r=android-reviewers,tchoh

New recording which offers some details into what might be happening.
Seems like rendered content is clipped "permanently" when scrolled offscreen.
An important other detail is that this does not happen with a fixed toolbar.

Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch

@ QA Please check to ensure that the issue disappearance and there are no other issues with blank space / content padding even on other devices and Android versions >Android 10.

Flags: qe-verify+

Petru, is that something we should uplift to 134? Thanks

Flags: needinfo?(petru)

(In reply to Pascal Chevrel:pascalc from comment #24)

Petru, is that something we should uplift to 134? Thanks

Thanks for the ping!
Indeed, we'd probably want this in beta also.
Was just waiting for a confirmation from QA that everything looks good after the change.
Keeping my NI until then.

See Also: → 1932904

I can no longer reproduce this issue in the latest Nightly 135.0a1 from 12/10 with OPPO A15s (Android 10).
I’ve also tested with Google Pixel 8 Pro (Android 14), Lenovo Yoga Tab 11 (Android 12) and LG G7 fit (Android 9), with the new and old toolbar and no other issues were observed.
I'll leave the "qe-verify+" flag until this can also be verified in Beta.

Comment on attachment 9440552 [details]
Bug 1933488 - Stop manually handling window insets r=#android-reviewers

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: On certain devices we observed padding issues for snackbars or even GeckoView rendering in a smaller viewport padded with blank space.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: Use the steps from bug 1933488 and bug 1932904 to validate
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small targeted change validated by QA in Nightly.
  • String changes made/needed:
  • Is Android affected?: Yes
Flags: needinfo?(petru)
Attachment #9440552 - Flags: approval-mozilla-beta?
Attachment #9440552 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Verified as fixed on Beta 134.0b10 as well with the following devices:
OPPO A15s (Android 10)
Pixel 9 Pro XL (Android 15)
OnePlus 12R (Android 14)
Sony Xperia z5 Premium (Android 7.1.1)
Samsung S24 Ultra (Android 14)

Status: RESOLVED → VERIFIED
Flags: qe-verify+

Investigating what on GeckoView's side might contribute to the issue I think it's the new "interactive resize" feature from bug 1831649.
Testing on https://www.wikipedia.org I see that after disabling dom.interactive_widget_default_resizes_visual the issue does not reproduce anymore.

See Also: → 1831649

(In reply to Chris Peterson [:cpeterson] from comment #3)

I can reproduce this bug in Nightly 135 using the old toolbar. I can reproduce when scrolling the Google search results page, but not other sites like Wikipedia. I can't reproduce when using the new toolbar.

I can't reproduce in Fx 133. I can't test Beta 134 because it hasn't be published to the Play Store yet.

May I ask on which device/Android version were you able to reproduce this?

Flags: needinfo?(cpeterson)

May I ask on which device/Android version were you able to reproduce this?

I can no longer reproduce this bug because the fix has landed, but I'm pretty sure I reproduced this bug on both my Samsung Galaxy A32 and Moto G5.

Flags: needinfo?(cpeterson) → needinfo?(petru)

Thanks, I think both of these are on Android 13 which shows a wider range of Android versions possibly affected.

Flags: needinfo?(petru)

I have also noticed that I can reproduce this error, it happens less often, but it does happen.

Flags: needinfo?(petru)
Flags: needinfo?(cpeterson)

(In reply to eclaudiu64 from comment #34)

I have also noticed that I can reproduce this error, it happens less often, but it does happen.

Thanks for the report!
This still happening increases the likelihood that this is an issue about how we compute the layouts for web content, similar to other issues like bug 1938303 or bug 1937785.

Flags: needinfo?(petru)
See Also: → 1937785, 1938303
Flags: needinfo?(cpeterson)

This is a workaround to Android 15's edge-to-edge behavior while allowing for
synchronizing UI elements animations with the virtual keyboard showing up or
being hidden.

A patch has been attached on this bug, which was already closed. Filing a separate bug will ensure better tracking. If this was not by mistake and further action is needed, please alert the appropriate party. (Or: if the patch doesn't change behavior -- e.g. landing a test case, or fixing a typo -- then feel free to disregard this message)

:petru, adding a NI about comment 37. For tracking purposes please use a different bug for your patch.

Flags: needinfo?(petru)

(In reply to Donal Meehan [:dmeehan] from comment #38)

:petru, adding a NI about comment 37. For tracking purposes please use a different bug for your patch.

I will do that, thank you!
Though about this impacting tracking after I pushed the PR :-(.

Flags: needinfo?(petru)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: