From 8f7f184837f3411db47ea45650204ac4d55c723e Mon Sep 17 00:00:00 2001 From: gorhill Date: Wed, 2 Mar 2016 16:41:51 -0500 Subject: [PATCH] this fixes #513 --- src/js/tab.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/js/tab.js b/src/js/tab.js index 7622920..82b2dc1 100644 --- a/src/js/tab.js +++ b/src/js/tab.js @@ -356,6 +356,11 @@ housekeep itself. return; } push(tabId, details.url, 'newURL'); + // https://github.com/gorhill/uMatrix/issues/513 + // Force a badge update here, it could happen that all the subsequent + // network requests are already in the page store, which would cause + // the badge to no be updated for these network requests. + µm.updateBadgeAsync(tabId); }; vAPI.tabs.onUpdated = function(tabId, changeInfo, tab) { @@ -610,7 +615,7 @@ vAPI.tabs.registerListeners(); if ( vAPI.isBehindTheSceneTabId(tabId) ) { return; } - tabIdToTimer[tabId] = vAPI.setTimeout(updateBadge.bind(this, tabId), 500); + tabIdToTimer[tabId] = vAPI.setTimeout(updateBadge.bind(this, tabId), 750); }; })();