This causes reevaluation of the score on every change to every tab, whether it's active or not and whether the change is meaningful (e.g. URL changes) or not (tab title or loading status changes).
The listener here should examine the changeInfo and ignore updates where url isn't in it, and ignore any tab which isn't active.
background.js has
This causes reevaluation of the score on every change to every tab, whether it's active or not and whether the change is meaningful (e.g. URL changes) or not (tab title or loading status changes).
The listener here should examine the
changeInfo
and ignore updates whereurl
isn't in it, and ignore anytab
which isn'tactive
.