Closed Bug 1208505 Opened 10 years ago Closed 10 years ago

Don't show crash recovery prompt if there are no tabs to recover

Categories

(Firefox for iOS :: General, defect)

All
Unspecified
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fxios 1.1+ ---

People

(Reporter: rnewman, Assigned: sleroux)

References

Details

Attachments

(1 file)

I just got an "Oops" prompt after upgrade. I had no non-home tabs open. Choosing to restore got me… about:home. We shouldn't show a dialog in this case.
See Also: → 1208506
Assignee: nobody → sleroux
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated patch with review comments + Array extension extraction. Also, I tested this by creating a ObjC class that has a single static method called 'crash' which @throws an NSException to trigger an uncaught exception. I added this to the addTab button call so the app would crash whenever I opened a new tab. I tried: 1. 5 Open tabs with various histories = shows prompt 2. 1 tab with history = shows prompt 3. 1 tab with no history = no prompt 4. 2 tabs with no history = no prompt
Comment on attachment 8670430 [details] [review] https://github.com/mozilla/firefox-ios/pull/1131 I'd love for the tiny change to BVC that actually fixes the bug to be in a separate commit, with the rest being "Pre" or "Part 0". It's hard to tell from the PR which part is important!
Attachment #8670430 - Flags: review?(rnewman) → review+
I've cleaned up the commits to be Pre: and Part with Part 1 containing the actual bug fix.
Merged
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: