Bug 1303776 - Call closeTab on the active tab when finishing a CustomTabsActivity. r=snorp
authorDylan Roeh <droeh@mozilla.com>
Fri, 23 Sep 2016 11:02:45 -0500
changeset 315847 69248cb145dec2602d030a0cd17ff6bd8ecaf6b9
parent 315846 75abc730f8202005d6469a7ec324b7aba5a89374
child 315848 930ead1e6df1dd3e4d75c8fbbfdd83b5b38419c8
push id20634
push usercbook@mozilla.com
push dateFri, 30 Sep 2016 10:10:13 +0000
treeherderfx-team@afe79b010d13 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssnorp
bugs1303776
milestone52.0a1
Bug 1303776 - Call closeTab on the active tab when finishing a CustomTabsActivity. r=snorp
mobile/android/base/java/org/mozilla/gecko/customtabs/CustomTabsActivity.java
--- a/mobile/android/base/java/org/mozilla/gecko/customtabs/CustomTabsActivity.java
+++ b/mobile/android/base/java/org/mozilla/gecko/customtabs/CustomTabsActivity.java
@@ -52,15 +52,16 @@ public class CustomTabsActivity extends 
             private void onDefault() {
                 ThreadUtils.postToUiThread(new Runnable() {
                     @Override
                     public void run() {
                         if (tab.doBack()) {
                             return;
                         }
 
+                        tabs.closeTab(tab);
                         finish();
                     }
                 });
             }
         });
     }
 }