Skip to content
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

Static filters not working with urls containing Unicode chars #2950

Closed
gomoku opened this issue Sep 2, 2017 · 9 comments
Closed

Static filters not working with urls containing Unicode chars #2950

gomoku opened this issue Sep 2, 2017 · 9 comments

Comments

@gomoku
Copy link

gomoku commented Sep 2, 2017

An example static filter: ||darmoweogłoszenia.pl/pl-mapa.js$script,domain=www.xn--darmoweogoszenia-ryc.pl
(as well it's simplified case: ||darmoweogłoszenia.pl/pl-mapa.js$script)
not working, no red blocked script is showing up in the logger

Reproduced on FF 55.0.3 32bit / FF Nightly 56.0b8 64bit / Opera 47.0.2631.71 64bit (PGO) + uBO v1.13.10 / 1.14.3b0 webext / v1.14.4 webext.

(not sure if a second part of a title of the issue is right, please correct me if needed)

@gomoku gomoku changed the title A static filters not working on urls with latin chars Static filters not working on urls with latin chars Sep 2, 2017
@gomoku gomoku changed the title Static filters not working on urls with latin chars Static filters not working with urls with latin chars Sep 2, 2017
@gomoku gomoku changed the title Static filters not working with urls with latin chars Static filters not working with urls containing latin chars Sep 2, 2017
@gorhill
Copy link
Owner

gorhill commented Sep 2, 2017

@gorhill gorhill closed this as completed in a0c595d Sep 2, 2017
@gomoku
Copy link
Author

gomoku commented Sep 2, 2017

From: https://github.com/gorhill/uBlock/releases/tag/1.14.5rc0

Firefox: The issue affects Firefox 55 only, it was fixed in Firefox 56.

I'm wondering how it could be fixed in 56, since as I've already mentioned in the 1st comment, I could and still can reproduce on:

FF Nightly 56.0b8 64bit

  • as for FF 55.0.3 32bit + uBO v1.14.5rc0 it is fixed, and
  • as for Opera 47.0.2631.71 64bit (PGO) + uBO v1.14.5.100 it is fixed too, along with the blank white box cosmetic filter issue btw

@gorhill
Copy link
Owner

gorhill commented Sep 2, 2017

The bugzilla issue says "firefox56 fixed", and the release notes for FF56 says it's fixed.

The issue I originally opened as been closed as wontfix because the bugzilla issue above was going to take care of it as a consequence of fixing it.

I don't have Firefox 56, but I can at least confirm it's fixed in Firefox 57.

I can enable the fix to apply to 56, but since it involves adding an overhead, I rather avoid it if it's unecessary. We have to find out whether the issue will be really solved once 56 lands.

@gorhill
Copy link
Owner

gorhill commented Sep 2, 2017

With Firefox 56, are the URLs reported in the logger punycoded or are they still IDN? They should all be normalized to punycode.

@gomoku
Copy link
Author

gomoku commented Sep 2, 2017

will be really solved once 56 lands.

Yes, that's the point, shouldn't "resolved fixed" status actually mean that it has really already been fixed in the current 56 Nightly? I've just thought logically that fixed = actually physically fixed, not virtually.

Hmmm.... from https://bugzilla.mozilla.org/show_bug.cgi?id=945240:

Platform: Mac OS X

Now I'm confused if it is / will be fixed in FF 56 for Windows.

@gorhill
Copy link
Owner

gorhill commented Sep 2, 2017

I will see later today when I have to time if I can reproduce, I will download a temp copy of FF56 from the ftp server.

@gomoku
Copy link
Author

gomoku commented Sep 2, 2017

OK.

With Firefox 56, are the URLs reported in the logger punycoded or are they still IDN? They should all be normalized to punycode.

IDN.

@gomoku
Copy link
Author

gomoku commented Sep 2, 2017

Confirmed fixed.

@xofe
Copy link

xofe commented Sep 2, 2017

The bugzilla issue says "firefox56 fixed", and the release notes for FF56 says it's fixed.

It seems the changes in bug 945240 are controlled by the network.standard-url.punycode-host pref (set to false in v56). The pref was then enabled in bug 1380617 (fixed in v57) along with fixes for broken behaviour.

@gorhill gorhill changed the title Static filters not working with urls containing latin chars Static filters not working with urls containing Unicode chars Sep 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants