This commit is contained in:
gorhill 2015-02-10 10:55:54 -05:00
parent 794e23a9c9
commit 7c08a4b259
1 changed files with 4 additions and 1 deletions

View File

@ -311,7 +311,10 @@ var renderPrivacyExposure = function() {
// The root page domain must always be counted as connected: that's from // The root page domain must always be counted as connected: that's from
// where the root document was fetched. // where the root document was fetched.
if ( allDomains[popupData.pageDomain] !== true ) { // https://github.com/gorhill/uBlock/issues/759
// The root page domain must be counted if and only if it was actually
// obtained through a network request.
if ( allDomainCount !== 0 && allDomains[popupData.pageDomain] !== true ) {
allDomains[popupData.pageDomain] = true; allDomains[popupData.pageDomain] = true;
touchedDomainCount += 1; touchedDomainCount += 1;
} }