Closed Bug 2039380 Opened 6 months ago Closed 6 months ago

App crashes in private tab when sports widget feature is enabled and "new private tab entry" is disabled

Categories

(Firefox for Android :: Homepage, defect)

All
Android
defect

Tracking

()

VERIFIED FIXED
152 Branch
Tracking Status
firefox150 --- unaffected
firefox151 --- verified
firefox152 --- verified

People

(Reporter: segun, Assigned: jdelorenzo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file, 4 external files)

Steps to reproduce

  1. Disable the feature that say s"Enable private mode and stories entry point" (via secret settings?)
  2. Enable the sports widget feature
  3. Open a private tab

Expected behavior

  • Tab opens successfully and I can browse

Actual behavior

  • App crashes

Device information

  • Firefox version: Nightly build 2016160735
  • Android device model: Any

Any additional information?

  • If your app tries to resume in private mode, it will stay in a crash loop forever
    Stack trace:
Uncaught exception handled:
android.content.res.Resources$NotFoundException: Resource ID #0x0
	at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:305)
	at android.content.res.Resources.getValue(Resources.java:1494)
	at androidx.compose.ui.res.ResourceIdCache.resolveResourcePath(Resources.android.kt:38)
	at androidx.compose.ui.res.PainterResources_androidKt.painterResource(PainterResources.android.kt:62)
	at org.mozilla.fenix.home.ui.WordmarkKt.WordmarkLogo(Wordmark.kt:40)
	at org.mozilla.fenix.home.ui.HomepageHeaderKt.HomepageHeader-0dUczTk(HomepageHeader.kt:61)
	at org.mozilla.fenix.home.ui.HomepageKt.Homepage$lambda$4(Homepage.kt:182)
	at org.mozilla.fenix.home.ui.HomepageKt.$r8$lambda$rzpov58u4-aPkTDOqc7lKZ6fBMU(Unknown Source:0)
	at org.mozilla.fenix.home.ui.HomepageKt$$ExternalSyntheticLambda4.invoke(D8$$SyntheticClass:0)
	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.kt:131)
	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.kt:52)

We need to register the fenixWordMarkSportLogo in private theme as we did for the normal theme

Assignee: nobody → jdelorenzo

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

Severity: -- → S2
Pushed by jdelorenzo@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/0ef14792bf05 https://hg.mozilla.org/integration/autoland/rev/3af2c1baf7b3 Fix crash in private tab from missing sports widget resource r=android-reviewers,skhan
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
Attachment #9591757 - Attachment description: WIP: Bug 2039380: Fix crash in private tab from missing sports widget resource → Bug 2039380: Fix crash in private tab from missing sports widget resource
Attachment #9591757 - Flags: approval-mozilla-release+

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)

QA Whiteboard: [qa-triage-done-c153/b152]
Attached video 2026-06-04-11-49-49.mp4 —

Verified as fixed on RC 151.0.3 and Beta 152.0b6 with Asus Zenfone 9 ( Android 13) and Lenovo Yoga Tab 11 (Android 12).

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

Attachment

General

Created:
Updated:
Size: