Bug 1485400 - Part 0: separate blocked tracker counter; r=smaug
☠☠ backed out by 8d89bfeb0b2f ☠ ☠
authorLiang-Heng Chen <xeonchen@gmail.com>
Thu, 30 Aug 2018 20:21:44 +0000
changeset 482651 9370432b26adcd6399e586190a47d4c8a8cdc56d
parent 482650 953cfa4e5a85bc7126c1500eb537765e9b785aaa
child 482652 c476aa79a8ca991dc8ea1e5c2eab98e442dad406
push id232
push userfmarier@mozilla.com
push dateWed, 05 Sep 2018 20:45:54 +0000
reviewerssmaug
bugs1485400
milestone63.0a1
Bug 1485400 - Part 0: separate blocked tracker counter; r=smaug separate tracker counter API Differential Revision: https://phabricator.services.mozilla.com/D4490
dom/base/nsIDocument.h
--- a/dom/base/nsIDocument.h
+++ b/dom/base/nsIDocument.h
@@ -3550,24 +3550,26 @@ public:
   }
 
   void DecrementIgnoreOpensDuringUnloadCounter()
   {
     MOZ_ASSERT(mIgnoreOpensDuringUnloadCounter);
     --mIgnoreOpensDuringUnloadCounter;
   }
 
-  void IncrementTrackerCount(bool aIsTrackerBlocked)
+  void IncrementTrackerCount()
   {
     MOZ_ASSERT(!GetSameTypeParentDocument());
-
     ++mNumTrackersFound;
-    if (aIsTrackerBlocked) {
-      ++mNumTrackersBlocked;
-    }
+  }
+
+  void IncrementTrackerBlockedCount()
+  {
+    MOZ_ASSERT(!GetSameTypeParentDocument());
+    ++mNumTrackersBlocked;
   }
 
   uint32_t NumTrackersFound()
   {
     MOZ_ASSERT(!GetSameTypeParentDocument() || mNumTrackersFound == 0);
 
     return mNumTrackersFound;
   }