Closed Bug 1922140 Opened 11 months ago Closed 11 months ago

Snackbar crash from using `first`

Categories

(Firefox for Android :: Bookmarks, defect)

All
Android
defect

Tracking

()

VERIFIED FIXED
133 Branch
Tracking Status
firefox132 --- verified
firefox133 --- verified

People

(Reporter: matt-tighe, Assigned: matt-tighe)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group1])

Attachments

(2 files)

java.util.NoSuchElementException: Collection contains no element matching the predicate.
at org.mozilla.fenix.library.bookmarks.ui.BookmarksStateKt.undoSnackbarText(BookmarksState.kt:183)

offending line:
val title = this.bookmarkItems.first { it.guid == state.guidsToDelete.first() }.title

Is the severity for this bug correct?
https://wiki.mozilla.org/BMO/UserGuide/BugFields#bug_severity

S1 (Catastrophic) Blocks development/testing, may impact more than 25% of users, causes data loss, likely dot release driver, and no workaround available

Flags: needinfo?(mtighe)

Nope! I assumed any crasher would be S1 but this won't be live code (behind Nimbus) until after it's fixed. Lowering the severity

Severity: S1 → S2
Flags: needinfo?(mtighe)
Priority: P1 → --
Assignee: nobody → mtighe
Attachment #9428966 - Attachment description: WIP: Bug 1922140 - Handle edge case for snackbar crash → Bug 1922140 - Handle edge case for snackbar crash
Pushed by matthewdtighe@gmail.com: https://hg.mozilla.org/integration/autoland/rev/fa03afa30f1e Handle edge case for snackbar crash r=android-reviewers,boek
Attachment #9429953 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: Bookmarks MVP + 1 does not ship in 132
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: N/A
  • Risk associated with taking this patch: None
  • Explanation of risk level: - feature is behind a nimbus flag and can be rolled back if bugs found
  • String changes made/needed: None
  • Is Android affected?: yes
Pushed by matthewdtighe@gmail.com: https://hg.mozilla.org/integration/autoland/rev/cc6e80971700 Handle edge case for snackbar crash r=android-reviewers,boek
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
Attachment #9429953 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Verified that Fenix Nightly 133.0a1 from 10/13 does not crash

  • while saving a page as a bookmark, and tapping on "Edit", or
  • when deleting a bookmark, and tapping on "Undo".

Tested with Realme GT Master Edition (Android 13), and a Samsung Galaxy Tab S9 Ultra (Android 14).

I am unable to also verify on Beta, because the "Enable compose bookmarks" is not available yet in Beta 132.0b6.

Flags: qe-verify+

Verified also on Fenix Beta 132.0b8 with Google Pixel 6 (Android 15), and Oppo Find X3 Lite (Android 11).

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: