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

Embedded WebExtension on FF ESR does not work if JS is disabled

Open foobar13373 opened this issue 9 years ago • 46 comments

After I got the 2017.8.15 update on my FF55 64Bit (Win10) the extension simply does not work anymore.

Before the update it correctly rewrote scummvm.org or 4chan.org, to name some examples (both are still listed on the atlas rule list as working). . After the update all domains I checked are not rewritten to HTTPS anymore and I suspect this is the case for all. I also checked a handful random ones from atlas, which where also not rewritten.

Also the new tab in the developers console does nothing - what exactly should iut do? I see an explanation and checkign the box does a reload, but then nothing happens. No matter if I'm on an unknown site (no matter if HTTP or HTTPS) or an know site (no matter if HTTP or HTTPS). Also no matter if mixed content.

Well, the extension still shows the GUI button. But is it supposed to not list matching rules anymore? And as I already posted: #11943 (which was a dupe as it turned out)

So, to me it seems that the GUI is correctly rendered, but none of the actual functionalities is working.

I tried purging the extension from my profile (deleting all occurences in about:config and delting all extension-related files in the profile folder), and reinstalling it cleanly. It did not help.

foobar13373 avatar Aug 16 '17 18:08 foobar13373

I'm getting the same behaviour on Win10 FF55.0.2(64b)/Tor 7.0.4(32b) #11944 somewhat related, probably. But I can't get it to work even on "Low".

Folant avatar Aug 16 '17 19:08 Folant

ping @Hainish

ghost avatar Aug 17 '17 08:08 ghost

HTTPS Everywhere works for me for http://scummvm.org using Firefox v55.0.1, extension version 2017.8.15, Ubuntu 16.04. By "works" I mean if I watch the developer console Network tab and type "scummvm.org" into the address bar and press enter, the initial request is made to https://scummvm.org/ and gets a 301 response.

jeremyn avatar Aug 17 '17 15:08 jeremyn

@jeremyn In my installation the request goes exactly to where it was made. A HTTP request to scummvm.org stays on plain http.

I tried with all my other extension (uBlock Origin and Decentral Eyes) disabled and enabled. Same behavior in both cases.

Are there any settings in about:config that could influence HTTPS Everwhere's core functionality in the new version?

foobar13373 avatar Aug 17 '17 15:08 foobar13373

@foobar13373 Regarding about:config settings: none that I know of.

Could you please attach a screenshot showing what your add-on UI looks like, showing the box expanded that says "HTTPS Everywhere" with all the checkboxes?

jeremyn avatar Aug 17 '17 15:08 jeremyn

dom.storage.enabled is enabled for me in about:config and according to Firefox, enabled (true) is the default setting.

jeremyn avatar Aug 17 '17 15:08 jeremyn

@user684 We have to store persistent settings somewhere.

jeremyn avatar Aug 17 '17 15:08 jeremyn

Screenshot (using scummvm.org as an example):

httpse

dom.storage.enabled is set to true in my case. But I agree that this should not be required for the extension, I was often thinking about turning this off (didn't do it already because I need to find the real implications on the behavior). Aren't there other possibilities to store settings? Or at least making storage enabled for addons but not for web pages?

edit: Where does the extension store the rulesets? Seems they do not get loaded at all.

foobar13373 avatar Aug 17 '17 15:08 foobar13373

I just renamed my FF profile folder, started FF to create a fresh profile, installed HTTPS-E from eff.org - and it was working (even the block all unencypted checkbox).

So there surely must be some other setting that is influencing how/if HTTPS-E is working.

foobar13373 avatar Aug 17 '17 16:08 foobar13373

It is not working in my original profile, even if I disable all addons (uBlock Origin + Decentral Eyes) and only leave HTTPS-E active.

I have safebrowsing off, OCSP off (generally I turn features bugs off that trigger requests to locations that are not requested by me in some way, either by entering it in the bar or by willingly enabling an add-on by hand) and opted in for e10s.

foobar13373 avatar Aug 17 '17 16:08 foobar13373

No. I only use a regular FF 55 with HTTPS-E, uBlock Origin (block everything by default, then whitelist allowed requests on a per domain base), Decentral Eyes. With home-calling off (OCSP, "safe" browsing, address bar suggestions, status/crash reports etc.). Cookies are disabled (I enable some sites by hand), browser history is cleaned on exit. DRM is disabled. All shipped search engines are removed and replaced by Duck Duck Go. Passwords / form data are never stored.

All this through the regular preferences dialogue. I think only opting-in for e10s was actually done by editing about:config by hand. But iirc e10s is enabled by default now anyways, isn't it?

foobar13373 avatar Aug 17 '17 17:08 foobar13373

I could isolate the problem. And it is really strange. I created a clean profile again, installed only HTTPS-E. It was working. Then I switched setting by setting in the regular settings dialogue and restarted the browser every time. So I tested each setting separately.

HTTPS Everywhere is not working if you choose custom privacy settings and disable cookies at all and restart the browser!

So, for some strange reason the extension is depending on cookies now?

I tried this on scummvm.org again. Oh, and also the HTTPS-E WebDev console tab was working now, with cookies enabled.

I inspected the cookies and there was no sign of a HTTPS-E cookie, only the spyware cookies from Google and PayPal.

foobar13373 avatar Aug 17 '17 17:08 foobar13373

Thanks for the report @foobar13373. I'm looking into this now.

Hainish avatar Aug 17 '17 18:08 Hainish

@foobar13373 I can confirm your results, that is, that unchecking "Accept cookies from sites" in about:preferences#privacy and restarting Firefox will cause HTTPS Everywhere to not rewrite http://scummvm.org to HTTPS. Good catch!

jeremyn avatar Aug 17 '17 18:08 jeremyn

@foobar13373 By the way, you can work with profiles using about:profiles. You don't need to rename folders or anything like that.

jeremyn avatar Aug 17 '17 18:08 jeremyn

It seems that all cookie/profile manipulations have zero impact in my case. i.imgur.com for example 🤔

  1. New profile with 2017.8.15 webext
  2. New profile with 5.2.21 nonwebext

Folant avatar Aug 17 '17 18:08 Folant

If it's not possible to whitelist specific extension or the extension is not adjusted to not use localStorage/cookies, I'd rather not use HTTPS-E anymore. Since I'm working with a full-block uBlock Origin with whitelisting anyways (most of my visited/bookmarked sites are https anyways already), enabling cookies/localStorage just for HTTPS Everyhwere would lower my privacy settings, I feel.

foobar13373 avatar Aug 17 '17 19:08 foobar13373

I've identified the issue and have a fix for it

Hainish avatar Aug 17 '17 19:08 Hainish

This will be released at some point today

Hainish avatar Aug 17 '17 19:08 Hainish

The data that is stored in localStorage is whether specific rules are enabled/disabled. If we mock out the localStorage object on run, the enable/disable will not persist across browser runs but at least it will not cause the extension to stop running when cookies are disabled.

Hainish avatar Aug 17 '17 19:08 Hainish