Index: chrome/ext/background.js |
=================================================================== |
--- a/chrome/ext/background.js |
+++ b/chrome/ext/background.js |
@@ -102,12 +102,6 @@ |
onLoading: new ext._EventTarget() |
}; |
- chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) |
- { |
- if (changeInfo.status == "loading") |
- ext.pages.onLoading._dispatch(new Page(tab)); |
- }); |
- |
function forgetTab(tabId) |
{ |
ext._removeFromAllPageMaps(tabId); |
@@ -117,7 +111,10 @@ |
chrome.webNavigation.onBeforeNavigate.addListener(function(details) |
{ |
if (details.frameId == 0) |
- forgetTab(details.tabId); |
+ { |
+ forgetTab(tabId); |
+ ext.pages.onLoading._dispatch(new Page(tab)); |
+ } |
}); |
chrome.tabs.onReplaced.addListener(function(addedTabId, removedTabId) |