[ui/popup] Collect stats by means of DomainTree