aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorStephen Blott2015-06-25 08:22:24 +0100
committerStephen Blott2015-06-25 08:22:27 +0100
commit9275c7a40cebb18e4c4593c9dd8a06ce655e2757 (patch)
tree751533df35320e8aae93fc1ca125db642ca9a406 /background_scripts
parentcb42acfc59c10df4c0fd56f068c83c7509d5a237 (diff)
downloadvimium-9275c7a40cebb18e4c4593c9dd8a06ce655e2757.tar.bz2
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).
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee1
1 files changed, 1 insertions, 0 deletions
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"