Skip to content

Don't count requests blocked during private browsing

Environment

  • OS version: Windows 10 Professional version 1909 (64 bit)
  • Browser version: Firefox 72.0.2
  • Extension version: 3.7
  • Last working version: (e.g. Adblock Plus 3.5)
  • Filter lists: Easy List (upstream), Easy List Germany (upstream), Easy Privacy (upstream)
  • Important settings: Permanent private browsing mode is enabled in Firefox; Automatic filter list updates are disabled in Adblock Plus

Steps to reproduce

  1. Apply the reported system configuration as close as possible.
  2. Open Firefox and go to https://www.twitch.tv/directory .
  3. Monitor your disk activities (for example with Windows's resource monitor).

Observed behavior

The disk is busy writing 50+% of the time.

Expected behavior

The HDD should be mostly silent on idle.

What to change

Stop updating blocked_total for requests coming from tabs with the incognito property set.

Hints for testers

When we merged the adblockpluschrome codebase into adblockplusui, the respective UI changes were already made (see #851 (closed), #882 (closed)), so we left behind existing changes related to this issue. Therefore, this change also fixes any regressions regarding those, that were introduced by #884 (closed) (e.g. no total blocked counter being shown in the icon popup).

Further information

We keep track of the total number of requests blocked in the blocked_total preference. Doing so while in private browsing is leaking information that may invade privacy. Moreover, on Firefox, during private browsing writes of those data make up for 50% of disk IO.

Edited by Thomas Greiner
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information