-
Notifications
You must be signed in to change notification settings - Fork 81
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
:watch-attr() stopped working #1392
Comments
Related issue: - uBlockOrigin/uBlock-issues#1392 Regression from: - 35aefed
This was causing a regression not only for |
Now the question: is it a case of emergency fix for a 1.31.4 release? |
Maybe just disable for few weeks this filter: uBlockOrigin/uAssets@6b78f43 |
It's surprising it was broken for so long and no one noticed. Is it still broken for normal "elements" case? |
What the... It works if I click on second test button and then on first test button. |
Yeah, works as you wrote. Maybe similar:
|
Yeah, I see the filterer is not informed of removed nodes, I will have to figure out why this changed. It seems the DOM watcher's code was modified and this broke reporting of removed DOM nodes. I will have to find the exact commit for this change but I think my thinking was to avoid firing DOM changes when non-element nodes are removed, for example when just a text node is removed. So when I optimized for this I actually broke reporting DOM changing as a result of elements being removed. This broke in gorhill/uBlock@6112a68#diff-7c975d431b3d370b6b59f5860b06ddfdfc44eeafc32ef49dd705b13be13446ed, Oct 2017... |
Related issue: - uBlockOrigin/uBlock-issues#1392 Regression from: - 6112a68
Details
Prerequisites
Description
MajkiIT/polish-ads-filter#18147 (comment)
Does not work on test page: https://ameshkov.github.io/web/watchattr.html
A specific URL where the issue occurs
https://ameshkov.github.io/web/watchattr.html
Steps to Reproduce
ameshkov.github.io###testdiv:watch-attr(id):has(p)
Expected behavior:
Element should appear/disapper after click on button
Actual behavior:
Element does not appear
Your environment
Notes
Broken in 1.29.3.9
The text was updated successfully, but these errors were encountered: