You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I performed a cursory search of the issue tracker to avoid opening a duplicate issue
I tried to reproduce the issue when...
uBlock Origin is the only extension
uBlock Origin with default lists/settings
using a new, unmodified browser profile
I am running the latest version of uBlock Origin
I checked the documentation to understand that the issue I report is not a normal behavior
Description
This is an issue I'm experiencing with websites containing elements whose IDs have backslashes in them, in particular backslashes before periods (\.). When I try to block such an element by right-clicking it and selecting "Block Element", I get the dialog in this partial screenshot:
The text in the text bog is not the full ID - only up to the first backslash
Clicking the full ID in the list below the text box does not produce the full ID in the textbox - again, just up to the backslash
The ID in the example in the screenshot, with its rule prefix, is ###new-haaretz\.co\.il\.ghost\.inread\.2.xxvert__content--c.h-mb.
A specific URL where the issue occurs
As you may have guessed from the element ID, this issue manifests on the website haaretz.co.il . But - you probably won't see it, since the site has a pay-wall and this happens on the for-pay pages. Also, it's a Hebrew-language website. Still, here is a (inaccessible without being subscribed) URL in which the bug manifests: https://www.haaretz.co.il/opinions/.premium-1.6366330
Steps to Reproduce
Get subscription credentials for haaretz.co.il (I can provide them temporarily)
Visit the specified URL
Try to block one of the ads that show up between consecutive paragraphs of the main text column (they have a small texual header, "--פרסומת--", which means "advertisement" in Hebrew.
Watch how the Element Picker dialog behaves.
Expected behavior:
The text box will show the entire element ID, with backslashes.
Actual behavior:
The text box will show the ID up to the first backslash.
Your environment
uBlock Origin version: 1.16.14
Firefox ESR 52.9.0
Devuan ASCII 2.0 (basically it's Debian Stretch without systemd)
PS - Once this is resolved, I hope to be able to define filters matching prefixes of such IDs; but that's beyond the scope of this issue.
The text was updated successfully, but these errors were encountered:
eyalroz
changed the title
Element picker mishandles identifiers with backslashes
Element picker mishandles identifiers with escaped periods
Aug 13, 2018
Prerequisites
Description
This is an issue I'm experiencing with websites containing elements whose IDs have backslashes in them, in particular backslashes before periods (
\.
). When I try to block such an element by right-clicking it and selecting "Block Element", I get the dialog in this partial screenshot:The ID in the example in the screenshot, with its rule prefix, is
###new-haaretz\.co\.il\.ghost\.inread\.2.xxvert__content--c.h-mb
.A specific URL where the issue occurs
As you may have guessed from the element ID, this issue manifests on the website haaretz.co.il . But - you probably won't see it, since the site has a pay-wall and this happens on the for-pay pages. Also, it's a Hebrew-language website. Still, here is a (inaccessible without being subscribed) URL in which the bug manifests: https://www.haaretz.co.il/opinions/.premium-1.6366330
Steps to Reproduce
Expected behavior:
The text box will show the entire element ID, with backslashes.
Actual behavior:
The text box will show the ID up to the first backslash.
Your environment
PS - Once this is resolved, I hope to be able to define filters matching prefixes of such IDs; but that's beyond the scope of this issue.
The text was updated successfully, but these errors were encountered: