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

This is what I've done for the hotfix, we'll have to come up with a better solution later.

Hainish avatar Aug 17 '17 19:08 Hainish

Nice, that sounds perfectly fine for me as I was never using custom or manually dis/enabled rules, only the shipped ones as the are.

But a more general fix would surely be nice for people with custom settings and disabled cookies.

foobar13373 avatar Aug 17 '17 19:08 foobar13373

This should be fixed as of https://github.com/EFForg/https-everywhere/commit/8ac30544e8724e43a30d7a54b157cd96c9728bde, I'll keep this open until we get good reports of this resolving the issue.

Hainish avatar Aug 17 '17 19:08 Hainish

I'll make an emergency release today. I'm also getting a related error report from Tor Browser: https://trac.torproject.org/projects/tor/ticket/23258. This does not fix the issue there. I'd like to bundle the fixes together if possible.

Hainish avatar Aug 17 '17 19:08 Hainish

There is another issue with the extension not behaving correctly when JavaScript is disabled. This worked before, so this is again unexpected. This behavior is not observed in Chromium with JavaScript disabled.

Hainish avatar Aug 17 '17 20:08 Hainish

I'm not seeing any useful output from the debugging console for this error. I do observe blank fields in the popup.

Hainish avatar Aug 17 '17 20:08 Hainish

Testing between Firefox 52 (ESR) and Firefox 55.

When JavaScript is disabled in 55, the extension behaves properly upon browser load. When JavaScript is disabled in 52 ESR, the extension does not redirect URLs and the popup is loaded with blank fields.

Hainish avatar Aug 17 '17 20:08 Hainish

@Hainish I doubt that any extensions work with disabled JavaScript.

ghost avatar Aug 17 '17 20:08 ghost

@Hainish Check if #11908 will fix it.

ghost avatar Aug 17 '17 20:08 ghost

@koops76 yes, extensions are supposed to work when JavaScript is disabled.

Hainish avatar Aug 17 '17 20:08 Hainish

@Hainish Try stepping through the code using the debugger.

ghost avatar Aug 17 '17 21:08 ghost

It looks like this is related to https://bugzilla.mozilla.org/show_bug.cgi?id=1329731

Hainish avatar Aug 17 '17 21:08 Hainish

The cookies issue should be fixed if you update now and restart. If you have JavaScript disabled in Firefox ESR, you'll still encounter some problems.

Hainish avatar Aug 17 '17 22:08 Hainish

@foobar13373 can you test this fix?

Hainish avatar Aug 17 '17 22:08 Hainish

Unfortunately it is still broken for me in Tor Browser.

jylr avatar Aug 18 '17 00:08 jylr

@jylr this is expected, see https://bugzilla.mozilla.org/show_bug.cgi?id=1329731 and https://trac.torproject.org/projects/tor/ticket/23258#comment:25

Hainish avatar Aug 18 '17 00:08 Hainish

I see, thanks.

jylr avatar Aug 18 '17 01:08 jylr

@Hainish The problem I described in https://github.com/EFForg/https-everywhere/issues/11948#issuecomment-323155485 reproducing @foobar13373 's original issue, is fixed for me.

jeremyn avatar Aug 18 '17 01:08 jeremyn

@Hainish HTTPS-E works now if cookies are disabled and localStorage is enabled. Having both, cookies and localStorage (dom.storage.enabled set to false), disabled, shows the same behaviour as before (HTTPS-E not working at all).

foobar13373 avatar Aug 18 '17 06:08 foobar13373

Just for the record: @gorhill is facing similar issues in uBlock Origin: https://github.com/gorhill/uBlock/issues/2824

There's his solution: https://github.com/gorhill/uBlock/commit/6fb6b4ed989ee9b6c0f910ede2f3d38ea99581e8

foobar13373 avatar Aug 18 '17 06:08 foobar13373