DescriptionIssue 5588 - Clear badge text only if zero hits
Chrome dispatches the loading event after the page has already started getting hits. If the stats module clears the text at this time, it can remain cleared if all the hits have already been counted.
This behavior can be observed by opening a new tab and quickly typing the URL and hitting Enter. If the page has only one hit, it'll be cleared from the badge.
Since the blockedPerPage map should return null for a page that is just starting to load, we check the value here. This solution works for both Firefox and Chrome.
Patch Set 1 #
MessagesTotal messages: 4
|