Bug 965455 - Set parent id when adding a new tab from snippet. r=wesj

This commit is contained in:
Margaret Leibovic 2014-02-07 08:41:28 -08:00
parent 9aae0825f0
commit 2918ef0230

View File

@ -178,7 +178,8 @@ function updateBanner(response) {
text: message.text,
icon: message.icon,
onclick: function() {
gChromeWin.BrowserApp.addTab(message.url);
let parentId = gChromeWin.BrowserApp.selectedTab.id;
gChromeWin.BrowserApp.addTab(message.url, { parentId: parentId });
},
onshown: function() {
// 10% of the time, record the snippet id and a timestamp