Bug 1573431 - Fix the issue that the "number of trackers" won't show if reopening it without a mouse move. r=nhnt11

We show the number of tracker if the data is up-to-date when opening the
panel.

Differential Revision: https://phabricator.services.mozilla.com/D41747

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tim Huang 2019-08-13 13:32:47 +00:00
Родитель 6d236dc311
Коммит 435074693c
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -1877,6 +1877,12 @@ var gProtectionsHandler = {
);
}
// Show the blocked tracker counter if it is not updating. We can sure the
// data in the tracker counter is up-to-date here, so we can show it.
if (!this._updatingFooter) {
this._protectionsPopupTrackersCounterBox.toggleAttribute("showing", true);
}
// Update the tooltip of the blocked tracker counter.
this.maybeUpdateEarliestRecordedDateTooltip();
},