Generalize mechanism for loading HTTPS Everywhere as system extension
In Tails we need a way to avoid the mandatory signature check for the uBlock Origin extension: tails/tails#12571. So far we have just unpacked the two omni.ja
:s and patched the parts where you implemented the exception for HTTPS Everywhere to also except uBlock Origin.
Anticipating #40091 (closed), where Tails' current hack won't work any more, I played around with !44 (closed) to see if this would work for uBlock Origin too: Starting with 10.0a6 I unpacked the two omni.ja
:s and added the BrowserGlue.jsm
changes from !44 (closed), but I changed HTTPS_EVERYWHERE_ID
and HTTPS_EVERYWHERE_BUILTIN_URL
appropriately as well as dumped the uBlock Origin extension into resource://torbutton/content/extensions/
. It worked like a charm!
I wonder, could we generalize this mechanism so that an extension can just be dropped into resource://torbutton/content/extensions/
and then be loaded as a system extension? To me it sounds like something pretty simple to implement given my test above, but perhaps I'm missing something? Or is this a bad idea for other reasons?