Open ptkovsky opened 7 years ago
I could reproduce with Chromium 56. However, the reason was that the image had been cached by the browser in its memory-based cache (a very short term cache, as opposed to the disk-based cache), which caused the network request to not be fired, and as a consquence to not go through the webRequest API. The workaround is to force a hard reload by pressing shift while clicking the reload button.
Possibly a similar situation with Safari?
Alright, the famous Safari caching mechanics and all the latest battery life buzzing in the tech press. Thanks for reminding us about that interesting feature. Could indeed be the case here. However, Shift+clicking refresh button does nothing in my case. Why does it cache only some of the backgrounds and other ones get filtered just fine? Not like I only visit the aforementioned sites, but I did notice the issue on them so gave it as a particular example. In fact this sites are more like the least visited.
Unfortunately, I think the issue is with Safari's extension API—for whatever reason beforeload
isn't called for url()
requests inside stylesheets... a pretty serious omission. Not sure if there's a viable workaround.
So basically trying to block background ads on example sites doesn't work. When you add a network filter it doesn't seem to apply. I have seen similar problems on sites like 3dnews.ru where the new background sometimes doesn't like to be hidden till some time. I have observed this issues in the last few months for sure and I am fully aware that this does look like an Apple sort of API issue, but decided to describe it anyway so that maybe it can be resolved somehow in the future.
URLs:
ko.com.ua gameinside.ua
Screenshot:
Just open the site and see the big background ad. This seems like a common practice nowadays.
Steps for anyone to reproduce the issue:
Configuration:
Settings seem to be almost default. Just tried installing Opera or using Chrome with the same configuration and it correctly hides the background in the above-mentioned cases.
Safari version is 10.0.3 uBlock Origin version is 1.11.3b1 MacOS version is 10.12.3
Filters:
They look like mostly default ones plus the BitBlock and RU AdList. Custom filters were created in case of this example and do look like this: ||ko.com.ua/sites/all/themes/ko/i/OKI_KO_branding.jpg$image