From 9275c7a40cebb18e4c4593c9dd8a06ce655e2757 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Thu, 25 Jun 2015 08:22:24 +0100 Subject: Set the parent tab when creating tabs. If the tab is subsequently deleted, then we return to the original tab (as opposed to the one on its right). --- background_scripts/main.coffee | 1 + 1 file changed, 1 insertion(+) (limited to 'background_scripts') diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 28959d35..4cb78441 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -204,6 +204,7 @@ openUrlInNewTab = (request, callback) -> index: tab.index + 1 selected: true windowId: tab.windowId + openerTabId: tab.id # FIXME(smblott). openUrlInNewTab is being called in two different ways with different arguments. We # should refactor it such that this check on callback isn't necessary. callback = (->) unless typeof callback == "function" -- cgit v1.2.3