Inconsistent behavior for .onion and .onion. (with tailing dot) hosts
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
Thanks! Your edit helped me out. I'll take it from here now.
Indeed, this was not expected. I've merged your fix, thank you!