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

Enabling JS for IPv6 Address fails #4006

Open
merspieler opened this issue Jun 18, 2018 · 10 comments
Open

Enabling JS for IPv6 Address fails #4006

merspieler opened this issue Jun 18, 2018 · 10 comments
Labels
priority: 2 - low Issues which are currently not very important.

Comments

@merspieler
Copy link

When I try to enable js for an IPv6 Address with the default tshbinding i get the following error message:

ERROR | message | message:error:63 | Error while parsing *://<IPv6 Address>/*: Invalid port: invalid literal for int() with base 10: '<IPv6 Address>'
@merspieler
Copy link
Author

Any update on this?

@The-Compiler
Copy link
Member

The URL match patterns are ported from Chromium's match patterns - at the time I implemented/ported them, they didn't support IPv6 addresses in Chromium either.

However, it looks like support for that was added to Chromium, incidentally a few hours after you opened this issue 😆

So all that needs to be done is porting those changes (and the associated tests) to qutebrowser's urlmatch.py and test_urlmatch.py. I probably won't work on that anytime soon though.

@The-Compiler The-Compiler added easy Issues which are likely to be a good fit for first-time contributors. priority: 2 - low Issues which are currently not very important. labels Jun 28, 2018
@merspieler
Copy link
Author

ok...

@tiemenv
Copy link

tiemenv commented Jul 9, 2018

If someone is willing to give me some pointers I'd be glad to look into this

@The-Compiler
Copy link
Member

@tiemenv Have you seen the links in my post above? Basically, the change in the linked commit needs to be ported from C++ to Python.

@The-Compiler
Copy link
Member

As @DerJesko points out in #4118, parsing IPv6 addresses in UrlPattern works fine:

>>> urlmatch.UrlPattern('*://[2001:41d0:2:3b68::1]/*')
qutebrowser.utils.urlmatch.UrlPattern(pattern='*://[2001:41d0:2:3b68::1]/*')

so the issue you're actually seeing is with the tsh binding, similar to how it handles file:// URLs incorrectly. I thought there was an issue for that already, but I cn't find it right now.

@The-Compiler The-Compiler removed the easy Issues which are likely to be a good fit for first-time contributors. label Aug 8, 2018
@jgkamat jgkamat closed this as completed Aug 13, 2018
@The-Compiler
Copy link
Member

I don't think this should be closed yet, as tsh probably still doesn't work. Can't test it currently though, as I'm rarely in a network with IPv6 support 😟

@The-Compiler The-Compiler reopened this Aug 14, 2018
@jgkamat
Copy link
Member

jgkamat commented Aug 14, 2018 via email

@lufte
Copy link
Member

lufte commented Jul 2, 2020

so the issue you're actually seeing is with the tsh binding, similar to how it handles file:// URLs incorrectly. I thought there was an issue for that already, but I cn't find it right now.

@The-Compiler I just ran into this file:// thing. Does the issue exist after all? I also couldn't find it.

@The-Compiler
Copy link
Member

@lufte Nope, but I think it's the same underlying issue as this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: 2 - low Issues which are currently not very important.
Projects
None yet
Development

No branches or pull requests

5 participants