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
This commit is contained in:
Margaret Leibovic 2015-11-13 15:37:40 -05:00
parent 6f2b6fb0fa
commit a7cbba863e

View File

@ -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() {