https-everywhere icon indicating copy to clipboard operation
https-everywhere copied to clipboard

Inconsistent behavior for .onion and .onion. (with tailing dot) hosts

Open cschanaj opened this issue 9 years ago • 2 comments

Type: code issue

Domain: onion.

As per the following code, we do not cancel .onion requests in "Block all unencrypted requests" mode even if they are not available in HTTPS. However, the same does not hold true for .onion. (with tailing dot) requests. Requests to .onion. are forced to go through HTTPS (main_frame) or otherwise canceled if there is no applicable ruleset.

https://github.com/EFForg/https-everywhere/blob/159a9fa4ca9ea0109ad7bbb4a367a42fadc342f7/chromium/background.js#L236-L243

e.g.

http://nonhttpsonionaddress.onion/ -> http://nonhttpsonionaddress.onion/

http://nonhttpsonionaddress.onion./ -> https://nonhttpsonionaddress.onion/

P.S. I am not really sure if this is the expected behavior. @Hainish @cowlicks can you confirm?

P.S.2 Possible fix in #13569

cschanaj avatar Nov 12 '17 08:11 cschanaj

Thanks! Your edit helped me out. I'll take it from here now.

https-everywhere-bot avatar Nov 12 '17 08:11 https-everywhere-bot

Indeed, this was not expected. I've merged your fix, thank you!

Hainish avatar Nov 13 '17 19:11 Hainish