-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML filter exception doesn't work. #6
Comments
HTML exception filters are still a TODO: https://github.com/gorhill/uBlock/blob/ec29c9a127342f6d250c41572017329c45aca0e5/src/js/html-filtering.js#L236. For me to be motivated to address this I will need actual cases that benefit all users. Your filter is an unrealistic use case. |
@gorhill OK then. It's just that exceptions are working with mozilla.org, not quite right though, i need to refresh one time to access it. |
Closing this until actual use case(s) are brought up as per gorhill's request. |
It can be kept opened, as it is definitely a TODO, I even wrote it in the code. It's just not a priority to fix for now. |
@gorhill I was going to post new issue but a quick search turned this up showing it as fixed. Is the syntax for HTML filter exceptions same as that for cosmetic ones, like |
Ah, alright. Thanks @gwarser for pointing that out! I have one more question. Going by the wiki, HTML filters sound conceptually awesome. But what's the catch? How do they compare against regular cosmetic filters in terms of speed, performance and efficiency? Is there any reason to prefer non-HTML filters over HTML ones if the browser supports them? |
It relies on Response data API which is only available in Firefox 57+ atm.
Eliminates any possible race condition occuring on any website. |
Yes @uBlock-user, that's why my question was only for the case when browser supports both. |
@in4u HTML filtering acts strictly on the response data -- stuff is removed before the browser parses the response data. This means that anything that is added dynamically to the DOM after the browser parses the response data can't be directly filtered by HTML filtering. Cosmetic filters acts directly on the DOM, present and future, and cosmetic filtering merely applies style properties to the DOM, it never removes stuff from the DOM. So what HTML filtering and cosmetic filtering do is very different. |
@gorhill Does the removal cause any performance hit or delay or some other problem except breaking things? If I have a list of cosmetic rules which don't break anything (and have the exact same blocking result) by converting them into HTML filters, which should I prefer - HTML or non-HTML filters? |
Frankly, only profiling would provide an evidence-based answer to this (or at least to the one scenario your are profiling). My intuition for the specific case you bring is that cosmetic filtering would be better -- but as said, it's my intuition, profiling could prove me wrong. |
Hmmm... okay thanks @gorhill, for the time being I'll stick to non-HTML filters as per your recommendation for my use case. But please do update the wiki as and when new information / profiling result is available. |
This comment was marked as abuse.
This comment was marked as abuse.
In Nightly, entire page load hangs up for few minutes due to |
It's just the browser which seems to be waiting for more data after it receives a response with just Regarding the issue filed here, as per comment in code, I never implemented negated domain names (what was fixed above was exception filters |
Prerequisites
Description
google.*,~www.google.com##^*
exception doesn't work for any subdomain too.A specific URL where the issue occurs
www.google.com
Steps to Reproduce
google.*,~www.google.com##^*
Expected behavior:
Working exceptions.
Actual behavior:
Not working exceptions.
Your environment
The text was updated successfully, but these errors were encountered: