Skip to content

Restarting Safari requires uBlock purge & update or pages/filters break every time  #26

@BillyJoeJimBob

Description

@BillyJoeJimBob

Describe the issue

Every time I restart Safari, many elements are hidden on some websites until I go to the "3rd Party Filters" tab and hit the "Purge All Caches" button followed by the "Update" button. This happens whether my mac has been running all day or after a cold restart. Simply refreshing the page has no effect.

It also appears that some, but not all, of uBlock's filters remain operative even after deselecting individual 3rd party and custom "My Filters" on the 3rd Party Filters Tab and the "I Am An Advanced User" button in the "Settings Tab"; then restarting Safari. All of this happens even if I uncheck every option and filter box in the Settings and 3rd-Partys tabs.

This is not desirable because I can't control which elements are or aren't hidden.

All other extensions are disabled, Safari is on either default or less restrictive settings.

None of this occurs when using the current version of uBlock Origin in Chrome or Firefox. Disabling uBlock Origin in Safari returns to the expected behavior: no filtering at all.

This may be related to issue # 13 on cosmetic filtering, which you addressed previously. My best guess is a cache issue, but I don't really know.

One or more specific URLs where the issue occurs

http://www.cnn.com
http://money.cnn.com
https://www.bing.com
http://www.bing.com
http://www.pcmag.com

Screenshot in which the issue can be seen

in each example below, part a is after Safari has been restarted with all filters unchecked.

1a: uBlock dashboard after unchecking all filters and restarting Safari, note the number of network and cosmetic filters listed is as over 100,000 even though all filters are unchecked:

ublock dashboard before purge update

1b: uBlock dashboard above after further clicking Purge, then Update:

ublock dashboard after purge update

2a: bing.com before purge & update (entire background is black/blank):

bing before purge update

2b.: bing .com after purge & update:

bing after purge update

3a.: cnn.com before purge & update:

cnn - before purge update

3b.: cnn.com after purge & update:

cnn - after purge update

4a.: money.cnn.com before purge & update:

cnnmoney - before purge update

4b.: money.cnn.com after purge & update:

cnnmoney - afterpurge update 1
cnnmoney - afterpurge update2
cnnmoney - afterpurge update3
cnnmoney - afterpurge update4

5a.: pcmag.com, before purge & update:

pcmag before purge update

5b.: pcmag after purge & update:

pcmag after purge update

Steps for anyone to reproduce the issue

  1. Restart Safari.
  2. Go to one of these web sites: money.cnn.com; cnn.com; bing.com; pcmag.com
  3. View the web page, in my case, page elements that should be visible are missing, other elements are visible that should be blocked by uBlock filters.
  4. Go to the 3rd Party filters tab, first click the Purge button, then hit the Update button in uBlock settings, wait for the update to complete.
  5. View the web page(s) after the purge & update. In my case, they are now functioning as expected.

--Alternative--
Before restarting Safari in step 1, above, uncheck all the filter boxes in the 3rd-party filters tab including the my filters box, and uncheck the advanced user box in the settings tab. In my case, the page acts as though many of the filters are still enabled.

Your settings

  • Safari version: 10.0.3
  • uBlock Origin version: 1.11.1.0
  • MacOS version: 10.12.3
Your filter lists

1: "Default filter lists + Anti-Adblock Killer + Fanboy's Enhanced Tracking List", or
2: all filters disabled

Custom filters:

cnn.com#@#.OUTBRAIN
cnn.com##.AR_33.ob_strip_container
cnn.com##.cnn-politics-tos--visible.cnn-politics-tos
cnn.com##.CRAB_1.ob-strip-layout.ob-widget
cnn.com##.CRAB_3.ob-strip-layout.ob-widget
cnn.com##.CRAB_4.ob-one-column-layout.ob-widget
cnn.com##.ob_dual_left
cnn.com##.ob-hover.ob_what
cnn.com###health-zone-8
cnn.com###homepage3-zone-1 > * > * > .zn__column--idx-2.column
cnn.com###living-zone-8
cnn.com###politics-zone-6
cnn.com###travel-zone-8
cnn.com###us-zone-7
cnn.com###world-zone-6

Thank you for your work on this project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions