From a7cbba863e4d138d39b7dabddb31b209c8a0034b Mon Sep 17 00:00:00 2001 From: Margaret Leibovic Date: Fri, 13 Nov 2015 15:37:40 -0500 Subject: [PATCH] Bug 1224661 - Clicking on a snippet should open the URL in the same tab, not a new one. r=liuche --HG-- extra : commitid : 5yRY7J80ubL extra : rebase_source : 1bfbe6d97a05b8ac358fcfcd7c77be38c9a747c7 --- mobile/android/components/Snippets.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mobile/android/components/Snippets.js b/mobile/android/components/Snippets.js index a7a0edcebf60..f5d3b33d9eea 100644 --- a/mobile/android/components/Snippets.js +++ b/mobile/android/components/Snippets.js @@ -203,8 +203,7 @@ function updateBanner(messages) { icon: message.icon, weight: message.weight, onclick: function() { - let parentId = gChromeWin.BrowserApp.selectedTab.id; - gChromeWin.BrowserApp.addTab(message.url, { parentId: parentId }); + gChromeWin.BrowserApp.loadURI(message.url); UITelemetry.addEvent("action.1", "banner", null, message.id); }, ondismiss: function() {