Closed Bug 1211490 Opened 9 years ago Closed 9 years ago

Crash: Navigating to Help settings menu when coming from private mode tab tray

Categories

(Firefox for iOS :: Browser, defect)

Other
iOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
Tracking Status
fxios 1.1+ ---

People

(Reporter: sleroux, Assigned: sleroux)

Details

(Keywords: crash, reproducible)

Attachments

(1 file)

STR 1. Switch to private mode 2. Open Settings 3. Tap 'Help' Expected * Settings should close and a new tab appears and animates in with help page Actual App crashes --------- The issue is with the BVC where we assume that all tabs that are opened using the openInNewTab call are normal tabs. Since we're in private mode, no tab is added to the list of tabs and the app crashes from the animation since there is no cell to animate from.
So this only happens when you have no private tabs open. If you have >= 1, it works fine.
Severity: normal → critical
Keywords: crash, reproducible
Assignee: nobody → sleroux
Status: NEW → ASSIGNED
I don't like this patch - mostly because it exposes a fundamental flaw in our app architecture. To avoid crashing, I'm relying on the isPrivate flag from the tab tray to tell the BVC to open the tab in the correct mode to prevent the crash. Ideally the BVC shouldn't be doing this and we shouldn't be using the tab tray as our source of truth for if we're in private mode but a lot of that work will be part of https://bugzilla.mozilla.org/show_bug.cgi?id=1212021.
Attachment #8670415 - Flags: review?(bnicholson)
Attachment #8670415 - Flags: review?(bnicholson) → review+
Merged
Status: ASSIGNED → RESOLVED
Closed: 9 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: