mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
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:
parent
6f2b6fb0fa
commit
a7cbba863e
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user