Closed Bug 1299925 Opened 8 years ago Closed 8 years ago

Handle back button correctly in custom tabs

Categories

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

defect

Tracking

(firefox51 fixed)

RESOLVED FIXED
Firefox 51
Tracking Status
firefox51 --- fixed

People

(Reporter: droeh, Assigned: droeh)

References

Details

Attachments

(1 file)

Currently, when in a custom tab, pressing the back button will close the active tab but leave the CustomTabsActivity running. Correct behavior is probably to call finish().
Attached patch Back button support (deleted) — Splinter Review
Just a quick and simple patch for this that finishes the activity and does nothing else when the back button is pressed in a custom tab. There are probably other considerations here (eg: do we close the tab? do we allow the back button to be used for navigation?), but I think we should land this ASAP and figure those issues out later. Without this patch it is impossible to return to an app that has launched a custom tab.
Attachment #8787408 - Flags: review?(snorp)
Priority: -- → P2
Comment on attachment 8787408 [details] [diff] [review] Back button support Review of attachment 8787408 [details] [diff] [review]: ----------------------------------------------------------------- Sounds good. Please file followups for the other questions you mentioned (or just one bug for 'figure out back button behavior')
Attachment #8787408 - Flags: review?(snorp) → review+
Pushed by droeh@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/bdf79acb0726 Override onBackPressed in CustomTabsActivity to finish the activity. r=snorp
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 51
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: