GNOME Bugzilla – Bug 735309
Adblock doesn't work for some ads
Last modified: 2016-12-26 23:01:58 UTC
Created attachment 284328 [details] a test case Loading and parsing adblock filter is changed to run asynchronously in bug 730129. It has improved performance at starting time though, it has broken the functionality itself. The core reason is that the filter loading happens after sending requests at beginning. When I revert https://git.gnome.org/browse/epiphany/commit/?id=cc7cc7a619da7a7bc1a4b9a10be664824dee5777, adblock works again. Attached a testcase for this.
That commit looks wrong; either uri_tester_parse_file_at_uri() should not return until all the filters have been parsed, or else uri_tester_test_uri() needs to block and not check the uri before all filters have been loaded. But the intent behind that commit was probably to avoid blocking the web process when loading filters. I guess the way to achieve both goals is to have the UriTester start parsing filters asynchronously as soon as the web extension starts.
Ah, I rediscovered this problem recently. Shame the offending commits were not reverted years ago. :( *** This bug has been marked as a duplicate of bug 775736 ***