Embedded WebExtension on FF ESR does not work if JS is disabled
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.
This is what I've done for the hotfix, we'll have to come up with a better solution later.
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.
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.
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.
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.
I'm not seeing any useful output from the debugging console for this error. I do observe blank fields in the popup.
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 I doubt that any extensions work with disabled JavaScript.
@Hainish Check if #11908 will fix it.
@koops76 yes, extensions are supposed to work when JavaScript is disabled.
@Hainish Try stepping through the code using the debugger.
It looks like this is related to https://bugzilla.mozilla.org/show_bug.cgi?id=1329731
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.
@foobar13373 can you test this fix?
Unfortunately it is still broken for me in Tor Browser.
@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
I see, thanks.
@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.
@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).
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