diff --git a/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java b/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java index 9de1a1b5b9d6..30b2f9abb8fc 100644 --- a/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java +++ b/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java @@ -1780,11 +1780,11 @@ public abstract class GeckoApp public void run() { if (TabQueueHelper.TAB_QUEUE_ENABLED && TabQueueHelper.shouldOpenTabQueueUrls(GeckoApp.this)) { - getAppEventDispatcher().registerGeckoThreadListener(new BundleEventListener() { + getAppEventDispatcher().registerUiThreadListener(new BundleEventListener() { @Override public void handleMessage(String event, GeckoBundle message, EventCallback callback) { if ("Tabs:TabsOpened".equals(event)) { - getAppEventDispatcher().unregisterGeckoThreadListener(this, "Tabs:TabsOpened"); + getAppEventDispatcher().unregisterUiThreadListener(this, "Tabs:TabsOpened"); openTabsRunnable.run(); } }