Closed Bug 1945107 Opened 12 days ago Closed 2 days ago

Fenix crashes when downloading a file with a very long extension

Categories

(Fenix :: Downloads, defect, P1)

Firefox 136
All
Android
defect

Tracking

(firefox134 unaffected, firefox135 unaffected, firefox136+ fixed, firefox137+ verified)

RESOLVED FIXED
137 Branch
Tracking Status
firefox134 --- unaffected
firefox135 --- unaffected
firefox136 + fixed
firefox137 + verified

People

(Reporter: vtamas, Assigned: calu)

References

(Regression)

Details

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

Attachments

(3 files)

Attached video FenixCrash.mp4

Steps to reproduce

  1. Navigate to https://jsfiddle.net/waktesjv/6/
  2. Tap on the download long named file button "dw loooong named file".

Expected behavior

The download prompt is being displayed.

Actual behavior

Fenix crashes.

Device information

  • Firefox version: Firefox Nightly 136 (2025-01-31)
  • Android device model: Samsung S24 Ultra (Android 14), OPPO A15s (Android 10), Samsung Galaxy A53 5G (Android 14), Motorola Nexus 6 (Android 8), Google Pixel 9 Pro XL (Android 15)

Any additional information?

  • Crash id: f657bb0a-2db6-4c59-ba6d-d471406593e6 , 83ee1ac8-056c-412f-9bc9-dc00ac196c10
  • This issue is a regression:
    • Last good build: 2025-01-27
    • First bad build: 2025-01-28

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

:calu, since you are the author of the regressor, bug 1880023, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(calu)
Flags: needinfo?(calu)
Whiteboard: [fxdroid][group4]

That's for catching this. Prior to my fix, the download would just fail. Now with a long extension, the app crashes.

Summary: Fenix crashes when downloading a file with a very long name → Fenix crashes when downloading a file with a very long extension

Hey Cathy, what would be the next step for this P1 bug? Thanks!

Flags: needinfo?(calu)

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

Thanks for the interest Julien, I'm actively working on fixing this.

Flags: needinfo?(calu)

The bug is marked as tracked for firefox136 (beta) and tracked for firefox137 (nightly). However, the bug still isn't assigned.

:007, could you please find an assignee for this tracked bug? Given that it is a regression and we know the cause, we could also simply backout the regressor. If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(nbond)
Assignee: nobody → calu
Flags: needinfo?(nbond)
See Also: → 1946152
Pushed by calu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fd64d83d9fc3 Prevent crashes when download file extension too long r=android-reviewers,tthibaud
Status: NEW → RESOLVED
Closed: 2 days ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch

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

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox136 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(calu)

Vasilica or QA, could you verify this and make sure this does not result in any other crashes, before we uplift to beta?
This specific case with the long extension name will still fail (it's covered by this bug https://bugzilla.mozilla.org/show_bug.cgi?id=1946152) but that was the behavior before as well.

Flags: needinfo?(calu) → qe-verify+

Verified as fixed in the latest Nightly 137.0a1 from 02/12. The application no longer crashes and no other issues except for the known exception from 1946152 were observed.
Tested with the following devices:

  • Google Pixel 8 Pro (Android 14)
  • Samsung Galaxy Note 8 (Android 12)
  • OPPO A15s (Android 10)
  • Google Pixel 9 (Android 15)
  • Samsung S24 Ultra (Android 14)
  • LG G7 fit (Android 9)
Flags: qe-verify+

Comment on attachment 9464113 [details]
Bug 1945107 - Prevent crashes when download file extension too long

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: App crashes when a user downloads a file with a long file extension
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce: Already completed
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Now when users download the file, it will just fail and notify the user, whereas before, it would crash the whole app.
  • String changes made/needed: No
  • Is Android affected?: Yes
Attachment #9464113 - Flags: approval-mozilla-beta?

Comment on attachment 9464113 [details]
Bug 1945107 - Prevent crashes when download file extension too long

Approved for 136.0b6

Attachment #9464113 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: