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

Doesn't rewrite URLs with wildcard targets in Firefox (includes *.gfycat.com, *.github.io, *.imgur.com, *.shopify.com, *.media.tumblr.com)

Open ADAMPOKE111 opened this issue 9 years ago • 8 comments

Accessing any image under the i.imgur.com subdomain through HTTP which is commonly hyperlinked on websites is not being redirected to the HTTPS variant for some odd reason despite the rule being present here: https://github.com/EFForg/https-everywhere/blob/a641125fc36c3a48a4cc4c33938fa369f397cfcc/src/chrome/content/rules/Imgur.xml

ADAMPOKE111 avatar Aug 18 '17 20:08 ADAMPOKE111

https://github.com/EFForg/https-everywhere/issues/11948#issuecomment-323160151 It seems to affect gfycat(e.g zippy.gfycat.com/giant.gfycat.com), media.tumblr.com(e.g 68.media.tumblr.com), shopify (e.g cdn.shopify.com), artlebedev.ru (img.artlebedev.ru) and maybe many [all?] other rules containing <target host="*.x.y" />

Folant avatar Aug 18 '17 21:08 Folant

Interesting, nothing was changed recently regarding the way URLs are interpretted as far as I can tell. I might have overlooked this or just not noticed the issue before. I can confirm it is happening on all my devices using HTTPS Everywhere.

ADAMPOKE111 avatar Aug 18 '17 21:08 ADAMPOKE111

or just not noticed the issue before

Well, v5.2.21 seems to be working fine with these rules that contain wildcards, 2017.8.15/2017.8.17 is not [at least for some of us].

Folant avatar Aug 18 '17 21:08 Folant

I think I'm going to take a look into this tomorrow and do some experimentation to see if I can remedy it. If anyone else has anything they'd like to contribute, feel free to chip-in.

ADAMPOKE111 avatar Aug 18 '17 21:08 ADAMPOKE111

#11980 has basically the same issue due to Github-Pages.xml#L6 btw.

Folant avatar Aug 18 '17 22:08 Folant

I agree with @Folant that wildcard targets aren't being rewritten, including both left wildcard targets such as http://www.imgur.com from Imgur.xml and right wildcard targets such as http://google.com from Google.xml.

@Hainish Please take a look at this.

jeremyn avatar Aug 19 '17 02:08 jeremyn

@Hainish would you make a release of the 5.2.21 (with the rulesets files from 2017.8.17) with automatic updates disabled (to be shipped with the tor-browser bundle as a temporary solution for tor-users/ advanced users)? For reasons being that

  • many targets using wildcards, especially the left wildcards are important domains
  • a large number of rulesets got re-activated after 5.2.21 is release, coverage improve greatly.

P.S. IMHO this special release shouldn't be distribute as a update. thanks.

cschanaj avatar Aug 19 '17 03:08 cschanaj

a69918f3fb356c422edc4c83fac95aba054b44a2 fixes this issue. I'll try to make a release tomorrow.

As for a special release for Tor Browser, I've already instructed them how to make a release using 5.2.21 removing the update channel and checking out the latest rules. Tor Browser builds in HTTPS Everywhere as part of their release process from signed tags, so it's not a matter of me making a special release for them.

Hainish avatar Aug 19 '17 04:08 Hainish