-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with adminSettings on FireFox. #2986
Comments
uBO is now a webext extension in AMO. This means it no longer fetches its This is the related bugzilla entry: https://bugzilla.mozilla.org/show_bug.cgi?id=1230802. |
Hmm... Alright. So is there no way to set those settings in the new version? Would there be any major issues if we installed 1.13.8 and turned off auto update? |
There is no way that I know -- but I am no reference regarding admin stuff. 1.13.8 is just fine, it still is a recent version. |
Fyi, somebody posted some sort of custom solution i the bugzilla entry: https://bugzilla.mozilla.org/show_bug.cgi?id=1230802#c13. |
Maybe similar issue? 1.14.4 stopped working here, settings are gone, block list is gone. Maybe no blocking at all? 52.3.0 (64-bit) ESR. I try to use older version and disable auto-update. Edit: 1.13.4 is the last version working here on ESR. |
gorhill, I saw that, though it looks like that is something to be implemented in the addon itself? |
Where is that |
cck2.cfg is a config file used by the CCK2 wizard for some customization. It's loaded through pref("general.config.filename", "cck2.cfg") in the autoconfig.js. It is included in our package source files for installing Firefox. |
So if I understand correctly it's a local file once Firefox is installed? If there was a URL uBO could use to fetch something in a standard way until the |
Yes, once installed, the file exists here: "C:\Program Files (x86)\Mozilla Firefox\cck2.cfg". It is technically a javascript file, not just a text config, I'm not sure if that would cause any issues. We would also be able to include any additional files we need to during the install. (Linking this because it seems possibly related: https://bugzilla.mozilla.org/show_bug.cgi?id=1386427) |
uBO can't read that file, webext does not allow to fetch using |
Hmm... I did some looking and I might be able to create a login script to modify "C:\Users<username>\AppData\Roaming\Mozilla\Firefox\Profiles<Profile>\browser-extension-data\[email protected]\storage.js" I don't think we'd be able to provide the file via http:// without having a local webserver running. This is definitely not an ideal solution, so if you have any other ideas that would be amazing. |
Well your idea of modifying |
Update about storage.manged: https://bugzilla.mozilla.org/show_bug.cgi?id=1230802 Also, for anyone else in this situation, I managed to work around it by deploying the extension using a registry key (https://developer.mozilla.org/en-US/Add-ons/Adding_extensions_using_the_Windows_registry) and then wrote a script that runs on first logon to delete any old versions of the extension from the user's profile and to create/overwrite the storage.js in the profile. If you aren't working with existing profiles, you should just be able to put the storage.js file in \core\defaults\profile\browser-extension-data\[email protected]\storage.js |
Update, https://blog.mozilla.org/addons/2017/09/28/webextensions-in-firefox-57/:
So for uBO I am totally guessing this would look like:
Double-encoding to JSON can be tricky, so this tool should be helpful: http://raymondhill.net/ublock/adminSetting.html. |
Hello Gorhill, this sounds great.
Any idea which directory this is? |
By the way, whoever succeeds using that basic implementation of
|
Hello Gorhill, I cant make it work, here the steps I did: Created a [email protected] file and put it in
with following content:
and added this reg-key:
But userFilters is empty, do I miss something? FF 57.0 b3 x64 |
Best is to provide feedback in the bugzilla issue, I know nothing about administration stuff, and even less about Windows stuff. |
I tried your file with Linux and all worked fine here -- using 58.0a1 (2017-10-01) (64-bit). |
No luck here, also tried it with the nightly 58.0a1 and reg-keys in HKEY_CURRENT_USER and |
Okay, I've got it working finally! OS/version: Windows 7 Pro x64 SP1 First create a json file eg. in: C:\Program Files\Mozilla Firefox\browser\extensions\[email protected] with content:
add following reg-key:
and start FireFox So the json file and reg-key, can now easily deployed via AD extensions. Example files: json+regkey.zip |
Maybe close the ticket when your issue is solved? |
Hi, |
Thanks ! |
I am having issues with the adminSettings config option in Firefox. I am trying to disable the uBlock filters - Privacy and EasyPrivacy filters. The string I am using works fine in Chrome (60.0.3112.113, uBlock Origin version 1.14.8) but does not appear to do anything in Firefox.
Chrome:
I have this text in the registry location for policies:
{"selectedFilterLists":["plowe-0","malware-1","malware-0","easylist","ublock-unbreak","ublock-badware","ublock-filters","user-filters"]}
Firefox:
I have this line in my cck2.cfg file:
defaultPref("extensions.ublock0.adminSettings", "{"selectedFilterLists":["plowe-0","malware-1","malware-0","easylist","ublock-unbreak","ublock-badware","ublock-filters","user-filters"],"filterLists":{"assets/thirdparties/pgl.yoyo.org/as/serverlist":{"off":false},"assets/thirdparties/mirror1.malwaredomains.com/files/justdomains":{"off":false},"assets/thirdparties/www.malwaredomainlist.com/hostslist/hosts.txt":{"off":false},"assets/thirdparties/easylist-downloads.adblockplus.org/easylist.txt":{"off":false},"assets/ublock/unbreak.txt":{"off":false},"assets/ublock/badware.txt":{"off":false},"assets/ublock/filters.txt":{"off":false},"assets/user/filters.txt":{"off":false},"assets/ublock/privacy.txt":{"off":true},"assets/ublock/experimental.txt":{"off":true},"assets/thirdparties/easylist-downloads.adblockplus.org/easyprivacy.txt":{"off":true}}}");
I have also tried going to about:config and pasting the string I have in the registry for chrome into the adminSettings preference then restarting the browser.
I tested downgrading to uBlock Origin version 1.13.8 (on Firefox) and the settings were properly applied. Did the method of configuration change in the newer version?
Sorry if this has been addressed elsewhere.
The text was updated successfully, but these errors were encountered: