[HTTPS-Everywhere] HTTPS Everywhere 3.5.1 and Fedora Linux / EL6

Russell William Golden niveusluna at niveusluna.org
Fri Jun 20 15:23:28 PDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
I believe I have found the issue that prevents HTTPS Everywhere 3.5.x
from working on EL6. I know programming in general, so I had some idea
what to look for when I found it. However, I don't know javascript, so I
don't know what specific code adjustments need to be made.

Lines 371 and 372 of /chrome/content/code/HTTPSRules.js appear to
hard-code the rules database path to the user's profile directory. When
installed system-wide (in /usr/share/mozilla/extensions for the case of
Red Hat and similar), there is no database in the user's profile
directory... so a file of that name is created, of length 0.

Naturally, a file of length zero contains no rewriting rules, so the
extension doesn't work.

I am wondering why that path was hard-coded, since the extension won't
necessarily be stored in a user's profile directory. On Windows, it
might be in
    "C:\Program Files\SeaMonkey\extensions\"
or
    "C:\Program Files (x86)\SeaMonkey\extensions\"
depending on whether it's 32-bit or 64-bit. That's for a system-wide
installation, all users get it, none can remove it without admin privs.

I'd bet that the same problem occurs on Windows if the extension is in
that directory instead of the user's profile directory.

Anyway. Fedora and EPEL are stuck with 3.4.5 until this is fixed. Hope
this helps.

Russell Golden
Fedora Project Packager
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
 
iQIcBAEBAgAGBQJTpLRgAAoJEKRLXWFvZpgnZscP/0y6DFDCBV1inebo7OqL0edo
4FWgaZmq7COSb+H6dRQ0AnBwJR+VmqWrCgn3MRuZEvqqIa8YTyKvHlHAcFugcjom
F9trVR5osoVEDLDcP+zSPejSTsW3k1cnLmAIvXmo8ovQaIa4pHEkwm/rhtafBj7F
LPJVOPmOitqvwSehvJhf6MSJ9+orglfkOatXRSqBQlO99Wi8m5QDo2t9QYWiQgAr
Np9r3IV89veZsb/JUjZtF3GD6yTC+Y7n9u8iXa9TOS0DAQGJwwBPCJESYykTFu0S
bwEXURMlZ+70koiozyxDvC42NDALaQ6ewabDO6w9Jedrbys+m5/9xJ36Sp7DyhXu
qJ5s6JaYEIbwLslzPqh7IkLHZknJRHokKk+Aw8qFzLO4svi1XStzK7AtsDhbZamm
Fts/FGqcQhRLhAMyQIQi/Y4tOLam1puB0xTsKtKOGmcq+cy0x6iwfTFoy8zf9fCI
oxZGKgtmvvOqLhuaPws6FervpR0Ggima0PWv6gIA3bhfk+oGLjNyGACrfiU949W3
9YJASJlEtKaKkl+6EnPsguTE6pyPx+zPL7Gtuijk6YGV3GjnlBOAJ8qlf6aS/MXB
IrLg1I9HjMqBxaFcbM0SNW6/FGbIKNCJixYvozGwAc9hPkmbRjF6v/FD8dqjBZmf
kSr5Q6dZshvqlTk9VhPE
=I9dl
-----END PGP SIGNATURE-----


---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com



More information about the HTTPS-Everywhere mailing list