aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorilya2010-03-31 21:41:09 -0700
committerilya2010-03-31 21:41:09 -0700
commit3d6236c82ea9aa634fde2bf5bb61af1c10d6c783 (patch)
tree56aa8bffb0b7cae00a786bf3ece8277d96ef2c09
parent4bd931b179fc3a1ad14a1e22df5a17b70c27b39e (diff)
downloadvimium-3d6236c82ea9aa634fde2bf5bb61af1c10d6c783.tar.bz2
Don't put the new tab page into the tab restoration queue.
-rw-r--r--background_page.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/background_page.html b/background_page.html
index c76d9c5d..ef24a241 100644
--- a/background_page.html
+++ b/background_page.html
@@ -321,6 +321,9 @@
chrome.tabs.onRemoved.addListener(function(tabId) {
var openTabInfo = openTabs[tabId];
+ // If we restore the new tab page, it'll ignore Vimium keystrokes when it reappears.
+ if (openTabInfo.url == "chrome://newtab/") { return; }
+
if (tabQueue[openTabInfo.windowId])
tabQueue[openTabInfo.windowId].push(openTabInfo);
else