Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/stats.js

Issue 29532730: Noissue - Rebase current master tip to edge bookmark (Closed)
Patch Set: Created Aug. 31, 2017, 2:55 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/notificationHelper.js ('k') | lib/utils.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/stats.js
===================================================================
--- a/lib/stats.js
+++ b/lib/stats.js
@@ -34,6 +34,14 @@
*/
exports.getBlockedPerPage = page => blockedPerPage.get(page) || 0;
+// Chrome automatically clears the browser action badge text when the URL of
+// the tab is updated, but Firefox doesn't.
+// https://bugzilla.mozilla.org/show_bug.cgi?id=1395074
+ext.pages.onLoading.addListener(page =>
+{
+ page.browserAction.setBadge();
+});
+
FilterNotifier.on("filter.hitCount", (filter, newValue, oldValue, page) =>
{
if (!(filter instanceof BlockingFilter) || !page)
« no previous file with comments | « lib/notificationHelper.js ('k') | lib/utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld