Bug 1191064 - Follow-up: Always skip tab queues when opening about:accounts. r=me
authorNick Alexander <nalexander@mozilla.com>
Thu, 17 Sep 2015 15:52:06 -0400
changeset 295946 4e9542200eb1a8a0d4928404b71ad0efaac1827e
parent 295945 eb238855c2a06b4e685589a75494fa4a7202158b
child 295947 70f459b00b8821ef13678ec1dfd3493bf8e8914c
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1191064
milestone43.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1191064 - Follow-up: Always skip tab queues when opening about:accounts. r=me This also skips the tab queue when opening other links internally, like the FxA Terms of Service and Privacy Policy.
mobile/android/base/sync/setup/activities/ActivityUtils.java
--- a/mobile/android/base/sync/setup/activities/ActivityUtils.java
+++ b/mobile/android/base/sync/setup/activities/ActivityUtils.java
@@ -18,16 +18,17 @@ import android.text.Html;
 import android.text.SpannableString;
 import android.text.Spanned;
 import android.text.TextPaint;
 import android.text.method.LinkMovementMethod;
 import android.text.style.ClickableSpan;
 import android.text.style.URLSpan;
 import android.view.View;
 import android.widget.TextView;
+import org.mozilla.gecko.tabqueue.TabQueueDispatcher;
 
 public class ActivityUtils {
   private static final String LOG_TAG = "ActivityUtils";
 
   public static void prepareLogging() {
     Logger.setThreadLogTag(SyncConstants.GLOBAL_LOG_TAG);
   }
 
@@ -59,16 +60,17 @@ public class ActivityUtils {
     if (url != null) {
       intent = new Intent(Intent.ACTION_VIEW);
       intent.setData(Uri.parse(url));
     } else {
       intent = new Intent(Intent.ACTION_MAIN);
     }
     intent.setClassName(GlobalConstants.BROWSER_INTENT_PACKAGE, GlobalConstants.BROWSER_INTENT_CLASS);
     intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
+    intent.putExtra(TabQueueDispatcher.SKIP_TAB_QUEUE_FLAG, true);
     context.startActivity(intent);
   }
 
   /**
    * Open a clicked span in Fennec with the provided URL.
    */
   public static class FennecClickableSpan extends ClickableSpan {
     private final String url;