From 3d6236c82ea9aa634fde2bf5bb61af1c10d6c783 Mon Sep 17 00:00:00 2001 From: ilya Date: Wed, 31 Mar 2010 21:41:09 -0700 Subject: Don't put the new tab page into the tab restoration queue. --- background_page.html | 3 +++ 1 file changed, 3 insertions(+) (limited to 'background_page.html') 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 -- cgit v1.2.3