Re: [Mozilla Enterprise] Installing and enabling an add-on silently

2018-02-15 Thread Nick Guenther
I've been trying to get uBlock Origin installed for my users, running
Firefox 52.6 ESR on Debian. I successfully have a silent-install
happening on by:

- placing the .xpi as
/usr/lib/firefox-esr/distribution/extensions/ublo...@raymondhill.net.xpi
on all our systems, and making sure every user has read permissions to
that file
- rm -r ~/.mozilla
- starting Firefox as an unprivileged user, which copies uBlock into
~/.mozilla/firefox/$PROFILE/extensions/ublo...@raymondhill.net.xpi

It was a bit tricky to figure out, especially because you can't really
test it without wiping away your profile completely, but it seems to
be reliable now.

I have pref("extensions.autoDisableScopes", 3); set in
/usr/lib/firefox-esr/browser/defaults/preferences/firefox.js, which
came with Debian's firefox-esr package, but if I didn't have that I
would have had to add a file to that folder, say
/usr/lib/firefox-esr/browser/defaults/preferences/extensions.js, with

// Necessary comment
pref("extensions.autoDisableScopes", 3);
// necessary newline:

(this is described at
https://developer.mozilla.org/en-US/Firefox/Enterprise_deployment#Configuration
but those docs are pretty confusing and seem to be at least partly out
of date).



Now I have a new challenge: I want to define uBlock's default
blocklists; its default list is alright, but I want to crank up the
adblocking in order to save our poor machines' RAM.

Marco Gaiarin <g...@sv.lnf.it> wrote:

> Some addons (i've found only ABP, Ad-Block Plus for now) need some
> post-activation explicit setup (eg, ABP need to ask what blocklist
> download), and you have to do that, user by user, or sometimes setup
> some pre-cooked settings (js) files.

My installed uBlock has made
~/.mozilla/firefox/$PROFILE/browser-extension-data/ublo...@raymondhill.net/storage.js,
which seems to contain all its preferences. If I manually re-copy
storage.js to the same place in a fresh profile, uBlock picks it up
and has my fuller blacklist defined.

I tried copying browser-extension-data/ to
/usr/lib/firefox-esr/distribution/ (and making sure the permissions
are correct and making sure to wipe my profiles each time) but Firefox
ignores it.

So, my question is: is there a canonical way to hand out add-on configuration?

For addons that use the Firefox preference system, it's easy: just add
files to /usr/lib/firefox-esr/browser/defaults/preferences/. But it
seems that Firefox has been heading towards more and more isolation --
which is a good thing -- while forgetting that extensions have
settings too. I'm stumped.

I would really rather not write a cronjob that syncs storage.js into
every home folder every 10 minutes. There's got to be a better way.

Thank you for your time and any clues you can toss my way,
-- 
Nick Guenther
Soutiens Technique
IT Support
Santropol Roulant Inc
___
Enterprise mailing list
Enterprise@mozilla.org
https://mail.mozilla.org/listinfo/enterprise

To unsubscribe from this list, please visit 
https://mail.mozilla.org/listinfo/enterprise or send an email to 
enterprise-requ...@mozilla.org with a subject of "unsubscribe"


Re: [Mozilla Enterprise] Installing and enabling an add-on silently

2018-02-19 Thread Nick Guenther
On Mon, Feb 19, 2018 at 10:56 AM, Marco Gaiarin <g...@sv.lnf.it> wrote:

> Mandi! Nick Guenther
>   In chel di` si favelave...
>
> > I've been trying to get uBlock Origin installed for my users, running
> > Firefox 52.6 ESR on Debian. I successfully have a silent-install
> > happening on by:
>
> Seems to me you are setting addon for ''auto installation'', instead i
> put addons on global addon folder and set addon scope to use it.
>
> eg 'browser\extensions\' and not 'distribution/extensions/'.
>
> I copy the confing snippet to 'browser\defaults\preferences\'.
>
>
> I'm on windows, so translate \ and / correctly... ;-)
>
>
Oh wow, I didn't know you could do that! I'll try it out today. Everything
I read said I could only trigger auto-installation, not straight-up
directly using the extensions. Thank you.

Do you know anything about distributing the configuration of the addons
themselves?



-- 
<https://www.santropolroulant.org/>

*Nick Guenther*

*Soutiens TechniqueIT Support*
___
Enterprise mailing list
Enterprise@mozilla.org
https://mail.mozilla.org/listinfo/enterprise

To unsubscribe from this list, please visit 
https://mail.mozilla.org/listinfo/enterprise or send an email to 
enterprise-requ...@mozilla.org with a subject of "unsubscribe"