From 7c08a4b259768a118b22542aa3c4dfd485531f9c Mon Sep 17 00:00:00 2001 From: gorhill Date: Tue, 10 Feb 2015 10:55:54 -0500 Subject: [PATCH] this fixes #759 --- src/js/popup.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/popup.js b/src/js/popup.js index 2436176ab..c37ada143 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -311,7 +311,10 @@ var renderPrivacyExposure = function() { // The root page domain must always be counted as connected: that's from // 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; touchedDomainCount += 1; }