Closed Bug 1821703 Opened 2 years ago Closed 1 year ago

Fix sponsored shortcuts jank

Categories

(Fenix :: Homepage, enhancement, P2)

All
Android
enhancement

Tracking

(firefox120 wontfix, firefox121 verified)

RESOLVED FIXED
121 Branch
Tracking Status
firefox120 --- wontfix
firefox121 --- verified

People

(Reporter: jmahon, Assigned: towhite)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid])

Attachments

(3 files)

If the keyboard is up and you switch to or from Private Browsing mode, ... the sponsored shortcuts reload.

(JM note: split out from https://bugzilla.mozilla.org/show_bug.cgi?id=1818624, it was originally a single statement reported by Verdi here)

Tasks should have Severity N/A.

Severity: S4 → N/A
Assignee: nobody → hoglesby
Status: NEW → ASSIGNED

I found a new way to replicate the "reloading" of the sponsored tiles:

Steps to reproduce:

  1. Close all tabs. This will leave you in the normal browsing home page.
  2. Open tabs tray and click New Tab FAB.

Expected:

  • User is still on homepage but cursor moves to awesomebar and keyboard goes up. No top sites or sponsored site tiles reload

Actual:

  • User is still on homepage but cursor moves to Awesomebar and keyboard goes up. Top sites and Pinned sites are not reloaded but Sponsored Site tiles are reloaded (shows as a flash of the icon for the Sponsored Site).
Whiteboard: [fxdroid]

Investigation results:

I located a block that I think is responsible for the re-loading "flash" of the Sponsored Sites when the homepage is reloaded.

https://searchfox.org/mozilla-mobile/source/firefox-android/fenix/app/src/main/java/org/mozilla/fenix/home/topsites/TopSiteItemViewHolder.kt

In the bind function, lines 149-159. The if (topSite is TopSite.Provided) loop is causing the flash. I commented out those lines and the icons changed for the Sponsored Sites and those tiles no longer flash-reloaded when the homepage was reloaded.

Further investigation is needed.

Status: ASSIGNED → NEW
Assignee: hoglesby → nobody
Status: NEW → RESOLVED
Closed: 1 year ago
Flags: qe-verify+
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch

Verified as fixed on Nightly 121.0a1 from 11/15 with Sony Xperia (Android 6.0.1) and Motorola Moto G9 plus (Android 11).

Flags: qe-verify+
Assignee: nobody → towhite

I can still reproduce this in Firefox 123 on my Samsung S9

Flags: needinfo?(hoglesby)

verdi is that with 'enable Compose Top Sites' secret setting enabled?

Flags: needinfo?(hoglesby) → needinfo?(mverdi)

(In reply to twhite from comment #9)

verdi is that with 'enable Compose Top Sites' secret setting enabled?

Ah - I missed that part. That setting isn't available in release so I just turned in on in Nightly 125 and I do see one of the two sponsored sites reloads when I switch.

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

Attachment

General

Created:
Updated:
Size: