Closed Bug 580193 Opened 10 years ago Closed 10 years ago

Sending application in background using "Back" button causes focused tab to close

Categories

(Firefox for Android Graveyard :: General, defect, major)

ARM
Android
defect
Not set
major

Tracking

(fennec2.0a1+)

VERIFIED FIXED
Tracking Status
fennec 2.0a1+ ---

People

(Reporter: ahoza, Assigned: mbrubeck)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; Windows NT 6.1; en-US; rv:2.0b2pre) Gecko/20100718 Minefield/4.0b2pre
Build Identifier: Mozilla/5.0 (Android; Linux armv7l;en-US;rv:2.0b2pre) Gecko/20100717 Namoroka / 4.0b2pre Fennec/2.0a1pre

One tab is missing after bringing Fennec back in foreground.

Reproducible: Always

Steps to Reproduce:
Environment:
Device: HTC Desire A8181
 
1. Create Fennec shortcut on desktop. 
2. Launch Fennec.
3. Open yahoo.com and cnn.com in different tabs.
4. Hit device's "Back" button.
5. Tap Fennec icon on desktop
Actual Results:  
One tab is missing (the one that was selected when hitting "Back" button)

Expected Results:  
Fennec regains focus and previously opened tabs are still there.
OS: Other → Android
Hardware: Other → ARM
tracking-fennec: --- → ?
tracking-fennec: ? → 2.0a1+
Assignee: nobody → mbrubeck
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attached patch patchSplinter Review
I added this behavior in Bug 568927 in an attempt to mimic back button behavior in normal Android apps (destroy the current activity and return to the previous one).  But I think we don't actually want to do this - Android's Browser doesn't close tabs on exit except for new tabs opened by other apps.  (We don't yet differentiate in Fennec between tabs opened internally vs. by other apps.)
Attachment #459515 - Flags: review?(mark.finkle)
Attachment #459515 - Flags: review?(mark.finkle) → review+
pushed:
http://hg.mozilla.org/mobile-browser/rev/8807229074c9
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Verified as fixed on :
Mozilla/5.0 (Android; Linux armv7l; rv:2.0b5pre) Gecko/20100823 Firefox/4.0b4pre Fennec/2.0a1 with HTC Desire A8181 device
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.