Prerequisites
I tried to reproduce the issue when...
Description
Two separate issues here:
First issue:
uBOL's picker can't pick inside shadow DOM, which is kinda expected.
If we paste a selector contained in shadow DOM, the counter show 0, there is no highlight and [Create[ can't be clicked. This is expected as well.
However... Pressing [Preview[ works. It actually hides the element inside of shadow DOM.
Doesn't that mean it should be possible to enable filter creation too (even if the counter and highlighter don't work)?
Second issue:
If all filter lists are disabled (or just LAN list enabled - so likely when no cosmetic filters are present), which I know is not an expected use*... If I paste this into picker:
shreddit-post:shadow(shreddit-post-share-button)
It will show highlight, it will count matches, the [Create] button will be available and pressing it will add a filter, but the filter won't work. Also pressing [Preview] will also not hide the element even though it's selected by the highlight.
* I mainly have it set that way for testing purposes. uBOL's picker is useful on mobile but I don't want filter conflict vs uBO.
A specific URL where the issue occurs.
reddit.com/r/uBlockOrigin
Steps to Reproduce
-
Visit reddit.com/r/uBlockOrigin.
-
Open uBOL's picker.
-
Paste shreddit-post-share-button
-
Observe no selection or matches.
-
Click [Preview] to see the element hidden.
-
Disable all filter lists.
-
Refresh the reddit page.
-
Open picker again.
-
Paste shreddit-post:shadow(shreddit-post-share-button)
-
Observe counter and highlighter working, [Preview] failing.
-
Click [Create] and observe no change.
-
Refresh the page, same result.
-
Add at least one filter list (not the LAN one).
-
Refresh reddit and see the filter now working.
Expected behavior
- Allow creating filters for selectors inside shadow DOM (since [Preview] works).
- Let
:shadow() operator work even if no filter lists are selected.
Actual behavior
As described above.
uBO Lite version
2025.1028.1744
Browser name and version
FF 144,0,2
Operating system and version
Linux
Prerequisites
I tried to reproduce the issue when...
Description
Two separate issues here:
First issue:
uBOL's picker can't pick inside shadow DOM, which is kinda expected.
If we paste a selector contained in shadow DOM, the counter show 0, there is no highlight and [Create[ can't be clicked. This is expected as well.
However... Pressing [Preview[ works. It actually hides the element inside of shadow DOM.
Doesn't that mean it should be possible to enable filter creation too (even if the counter and highlighter don't work)?
Second issue:
If all filter lists are disabled (or just LAN list enabled - so likely when no cosmetic filters are present), which I know is not an expected use*... If I paste this into picker:
It will show highlight, it will count matches, the [Create] button will be available and pressing it will add a filter, but the filter won't work. Also pressing [Preview] will also not hide the element even though it's selected by the highlight.
* I mainly have it set that way for testing purposes. uBOL's picker is useful on mobile but I don't want filter conflict vs uBO.
A specific URL where the issue occurs.
Steps to Reproduce
Visit
reddit.com/r/uBlockOrigin.Open uBOL's picker.
Paste
shreddit-post-share-buttonObserve no selection or matches.
Click [Preview] to see the element hidden.
Disable all filter lists.
Refresh the reddit page.
Open picker again.
Paste
shreddit-post:shadow(shreddit-post-share-button)Observe counter and highlighter working, [Preview] failing.
Click [Create] and observe no change.
Refresh the page, same result.
Add at least one filter list (not the LAN one).
Refresh reddit and see the filter now working.
Expected behavior
:shadow()operator work even if no filter lists are selected.Actual behavior
As described above.
uBO Lite version
2025.1028.1744
Browser name and version
FF 144,0,2
Operating system and version
Linux