Closed Bug 2044798 Opened 3 months ago Closed 3 months ago

Non-functional code in queueEngineWarmup

Categories

(Firefox for Android :: General, defect)

All
Android
defect

Tracking

()

VERIFIED FIXED
153 Branch
Tracking Status
firefox151 --- wontfix
firefox152 --- verified
firefox153 --- verified

People

(Reporter: mstange, Assigned: mcarare)

References

(Regression)

Details

(Keywords: regression)

Attachments

(5 files)

I made a mistake in D277473 (from bug 2023004) which means that queueEngineWarmup is a no-op.

We already have a patch to fix it in D295868; I'm filing this bug to land it.

Set release status flags based on info from the regressing bug 2023004

Key changes:

  • Corrected the queueEngineWarmup function signature by removing an extra set of braces that incorrectly wrapped the runOnVisualCompleteness call.
Assignee: nobody → mcarare
Status: NEW → ASSIGNED
Pushed by mcarare@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5742c635a8f7 https://hg.mozilla.org/integration/autoland/rev/7f3a52c08876 Fix syntax error in `FenixApplication.kt` by removing an unnecessary trailing brace in `queueEngineWarmup`. r=android-reviewers,jonalmeida
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ff4699c68bb7 https://hg.mozilla.org/integration/autoland/rev/bcac479b8b7d Revert "Bug 2044798 - Fix syntax error in `FenixApplication.kt` by removing an unnecessary trailing brace in `queueEngineWarmup`. r=android-reviewers,jonalmeida" for causing failures at openMultipleSelectedBookmarksInANewTabTest.

A bit of a bizarre downstream effect (either unexpected or expected change now) is that this test uses a local server and the expected title we check for on tabs is different from before. The tab titles now appear as opposed to their previous full localhost URL. Perhaps related to engine warm-up and when that resolves?

In any case if that's expected now, this line just needs updating to reflect that if expected https://searchfox.org/firefox-main/source/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/BookmarksTest.kt#181

Attached image before.png
Attached image after.png

I would say the the page title is what is expected to be seen there, the URL would be just a fallback.

Flags: needinfo?(mcarare)
Pushed by mcarare@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/486d7d0f339b https://hg.mozilla.org/integration/autoland/rev/47c8e3aa7988 Fix syntax error in `FenixApplication.kt` by removing an unnecessary trailing brace in `queueEngineWarmup`. r=android-reviewers,jonalmeida

Thanks. For posterity: the stray braces on queueEngineWarmup made it return an uninvoked lambda instead of running its body, so engine.warmUp() never executed (w/o visual-completeness queue as intended).

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

The patch landed in nightly and beta is affected.
:mcarare, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(mcarare)

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: engine warm-up not triggered
  • Code covered by automated testing?: no
  • Fix verified in Nightly?: no
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: We are fixing a regression, putting things as they were before the patch that introduced the change.
  • String changes made/needed?: No.
  • Is Android affected?: yes
Attachment #9593929 - Flags: approval-mozilla-beta?

Key changes:

  • Corrected the queueEngineWarmup function signature by removing an extra set of braces that incorrectly wrapped the runOnVisualCompleteness call.

Original Revision: https://phabricator.services.mozilla.com/D295868

Flags: needinfo?(mcarare)
Attachment #9593929 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Verified as fixed on the latest Nightly 153.0a1 -from 08.06.2026 and Beta 152.0b9 with Lenovo Yoga Tab 11 (Android 12) and Samsung Galaxy S25( Android 15).

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

Attachment

General

Created:
Updated:
Size: