-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
has/if filters rejected if contains >
char after recent changes.
#3111
Comments
This happens only with Nightly, not with Firefox 56, neither with Chromium 61. I test mostly only with these two last. So either this is a new issue in Nightly, or either the |
https://developer.mozilla.org/en-US/docs/Web/CSS/:scope:
|
Does it still work in FF57? |
Ok, in Nightly, Now I wonder if this is by design or a bug in the browser. uBO uses |
See the note. Seems to be by design:
Indeed it is Nightly only issue and seems to be recent, probably not more than few days. |
Now But I think this is unwanted side effect of this change. While documentation doesn't explicitly say about |
It is really late, but I filled bug report about this issue https://bugzilla.mozilla.org/show_bug.cgi?id=1406817 |
There are really two distinct issues here, I did not address the second one:
I just reproduced this one. |
Actually, never mind, the second issue is a filter one, I mistakenly used |
@gorhill may this I have example where this function timing increases from 400ms to 8 seconds when 250 filters like this:
extracted from "Adguard Base Filters" are added to uBlock. Should I create new issue, or wait for next Nightly build? |
@gwarser I have been working on refactoring cosmetic filtering as per #2984 as much as possible lately. That code you point out no longer exists in the refactored code. I am currently benchmarking to find out whether it's worth just injecting all the highly generic filters (in which the selectors you quote belong) unconditionally. Either way, that slow forEachNode no longer exists for Chromium or Firefox. Currently I still need to re-create back ability to log cosmetic filters following refactoring, and also the DOM inspector (this one is a real pain, I might just commit the changes before fixing -- the DOM inspector is a perfect example of how adding a feature can cause pain in the future). |
Also, to answer your specific question, the code at line 517 of |
By the way, you have a good URL which I could use for benchmarking purpose? What is the URL you had the issue? |
In this example it is NSFW On my phone https://discourse.mozilla.org/ is hard, but this may be different code path (script timeout warning on refresh). One more thing - I see this mentioned issue only on Nightly. Cannot reproduce on beta or stable. |
Nice example, the page is completely unusable at this moment with uBO. By the way, the |
@gwarser Here is bugreport for performance regression that we current;y have https://bugzilla.mozilla.org/show_bug.cgi?id=1405899 basically element.matches is very slow with Stylo. @gorhill: For any benchmark you are doing now, please keep in mind that current Firefox Nightly have quite slow element.matches. |
I just do another test - refreshing https://discourse.mozilla.org/, With |
Could you please reply on bugzilla? We can continue discussion there. |
That's the thing, the new code uses only user stylesheets on Firefox, no more |
The However, something to keep in mind while the issue is being worked by Firefox devs is that Edit: never mind, issue is fixed now in Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1407864. |
Describe the issue
Well, just look at the log. Latest version of uBO rejects valid procedural filters. I think it worked not so long ago, so probably the "normalization" changes broke this.
Two examples from uBlock filters, there are many more that are rejected, I'm just posting this for reference.
Also I noticed this one, which should be
if
instead ofhas
I wish I noticed this before you released stable. Bad luck.
Your settings
The text was updated successfully, but these errors were encountered: