Closed Bug 1997106 Opened 8 months ago Closed 8 months ago

Explicitly RequestDecode in FetchDecodedImageHelper::OnImageReady

Categories

(Core :: Graphics: ImageLib, defect, P1)

defect

Tracking

()

RESOLVED FIXED
146 Branch
Tracking Status
firefox145 blocking verified
firefox146 --- verified

People

(Reporter: tschuster, Assigned: tschuster)

References

Details

Attachments

(2 files)

While testing out a newer version of my patches in bug 1988124, I noticed that we never end up decoding anything with the FetchDecodedImageHelper. The problem is that we abort early in Notify() because we don't have an mImage so we never request a decode. After the last Notify() call we get the OnImageReady call (which sets mImage), but no more Notify() calls afterwards that would give us the opportunity to request a decode. So we just get stuck.

Summary: Explicitly RequestDecode in FetchDecodedImageHelper → Explicitly RequestDecode in FetchDecodedImageHelper::OnImageReady
Assignee: nobody → tschuster
Status: NEW → ASSIGNED
Blocks: 1985987

Seems like this would also fix the issue reported in bug 1996488.
Would be great to have this fixed in 146 before getting to affect more people.

Comment on attachment 9523210 [details]
Bug 1997106 - Explicitly RequestDecode in FetchDecodedImageHelper::OnImageReady. r?tnikkel

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: Broken extensions on Android (Bug 1996488)
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: I don't know the details, please see bug 1996488.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Simple one-line change, but sadly no automated tests.
  • String changes made/needed: none
  • Is Android affected?: Yes
Attachment #9523210 - Flags: approval-mozilla-beta?
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch
Regressions: 1998612

Let's target that for the mobile dot release a week after shipping 145.0.

No longer regressions: 1998612

Seems like this has not resulted in the regression from bug 1998612 and did fix the issue from bug 1996488 (currently affecting beta as well).
Thank you for the quick fix Tom!

After talking with the devs, there is the possibility that this bug affects not only the new menu that has a partial rollout with 145.0, but also the current menu system. There is some risk here and we still have a window for an RC2.

Severity: -- → S2
Priority: -- → P1
Attachment #9523210 - Flags: approval-mozilla-beta? → approval-mozilla-release?

Comment on attachment 9523210 [details]
Bug 1997106 - Explicitly RequestDecode in FetchDecodedImageHelper::OnImageReady. r?tnikkel

Approved for 145.0RC2

Attachment #9523210 - Flags: approval-mozilla-release? → approval-mozilla-release+

Verified as fixed on the latest RC build (145.0RC2) and on the latest Nightly build (146.0a1 from 2025-11-06).

The installed extensions are displayed in the Extensions section in the menu.

Devices used: Motorola Nexus 6 (Android 8), Samsung Galaxy S23 Ultra, S25 Ultra, OnePlus Pad 3 (Android 15).

Marking the ticket as verified on 145 and 146.

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

Attachment

General

Creator:
Created:
Updated:
Size: