How to use ExtensionSettings option #835
Replies: 29 comments 24 replies
-
What extensions are you wanting to do this with? |
Beta Was this translation helpful? Give feedback.
-
I’ll link it. Thanks for helping me out! https://addons.mozilla.org/en-US/firefox/addon/blocksite/
Sent with a Spark
…On Dec 6, 2021, 9:37 AM -0500, Michael Kaply ***@***.***>, wrote:
What extensions are you wanting to do this with?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
I'll take you through the steps I do. So the first thing we need is the ID of the extension. There are a few ways to do that.
Using my tool I got the ID: {dd3d7613-0246-469d-bc65-2a3cc1668adc} and the download URL: https://addons.mozilla.org/firefox/downloads/latest/blocksite/latest.xpi So what you're looking for is "force_installed" that says "install this for the user and don't let them uninstall. So you would set ExtensionSettings to:
|
Beta Was this translation helpful? Give feedback.
-
I would recommend linting your file at jsonlint.com. It should be a matter of putting this file called policies.json in the distribution directory:
|
Beta Was this translation helpful? Give feedback.
-
IS the policy active when you go to about:policies? |
Beta Was this translation helpful? Give feedback.
-
Oh mac :). OK the location is different. Are you putting it in Firefox.app/Contents/Resources/distribution |
Beta Was this translation helpful? Give feedback.
-
Yes. I created the distribution folder though because it wasn’t there before. Is that the problem?
Sent with a Spark
…On Dec 7, 2021, 11:22 AM -0500, Michael Kaply ***@***.***>, wrote:
Oh mac :). OK the location is different.
Are you putting it in
Firefox.app/Contents/Resources/distribution
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
Nope, that should work. I'm at a loss. Can you post a screenshot of your about:policies? |
Beta Was this translation helpful? Give feedback.
-
Yes. so when you click on Errors on the left, what does it say? |
Beta Was this translation helpful? Give feedback.
-
So there's definitely still an error in the policies.json. Can you post it here? |
Beta Was this translation helpful? Give feedback.
-
Error parsing JSON file: SyntaxError: JSON.parse: expected property name or '}' at line 1 column 2 of the JSON data
I think that have been from me messing with it beforehand before I asked you to help.
Sent with a Spark
…On Dec 7, 2021, 11:39 AM -0500, Michael Kaply ***@***.***>, wrote:
Yes.
so when you click on Errors on the left, what does it say?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
Yep. I can’t post a .json, so I’ll send a screenshot
Sent with a Spark
…On Dec 7, 2021, 11:44 AM -0500, Michael Kaply ***@***.***>, wrote:
So there's definitely still an error in the policies.json. Can you post it here?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
Screenshot didn't make it. If you want to email it to me - mkaply at mozilla dot com |
Beta Was this translation helpful? Give feedback.
-
I feel like it's reading a different policies.json file than that one because that one is definitely correct. |
Beta Was this translation helpful? Give feedback.
-
Can you try just deleting policies.json and see what you get in about:policies? I just want to make sure it's that file being used. |
Beta Was this translation helpful? Give feedback.
-
OK, that tells me it's reading a different policies.json. Can you go to about:support and tell me the value for Application Binary? |
Beta Was this translation helpful? Give feedback.
-
I'm at a loss here. Would you be willing to have a video call/screen share where we try to diagnose? |
Beta Was this translation helpful? Give feedback.
-
Thank you for offering, but I don’t feel comfortable doing that. Thank you for your help though! I really appreciate the time you’ve put in helping me.
Sent with a Spark
…On Dec 8, 2021, 11:26 AM -0500, Michael Kaply ***@***.***>, wrote:
I'm at a loss here. Would you be willing to have a video call/screen share where we try to diagnose?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
Totally understand. My only other suggestion is to go to about:config and add a preference called browser.policies.loglevel and set the value to a string with "debug" Then the JS console ( Cmd + Shift + J) might give us some extra info. The other thing I was wondering is if you somehow have a configuration profile loaded (separate from policies.json) |
Beta Was this translation helpful? Give feedback.
-
I’ll try to add the preference. Where would I look for a different config file outside of policies.json?
Sent with a Spark
…On Dec 8, 2021, 11:52 AM -0500, Michael Kaply ***@***.***>, wrote:
Totally understand. My only other suggestion is to go to about:config and add a preference called
browser.policies.loglevel
and set the value to a string with "debug"
Then the JS console ( Cmd + Shift + J) might give us some extra info.
The other thing I was wondering is if you somehow have a configuration profile loaded (separate from policies.json)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
Go to about:config Type browser.policies.loglevel in the field. Click the string radio button Click the Plus sign type the word debug and press enter. As far as having a configuration profile applied, search your mac using the question mark in the upper right for "Profiles" You should get a hit that is in system preferences. It's a checkbox in a star. Open that up and see if there is anything in it (it will be blank if you have nothing applied) |
Beta Was this translation helpful? Give feedback.
-
When you first open Firefox, you'll see the same JSON error in the console, but you should see some extra text before that (maybe). Basically a screenshot of the JS console right after starting Firefox. Unfortunately this won't have everything we need, but I'm going to add some better debug info just in case this ever happens again. |
Beta Was this translation helpful? Give feedback.
-
Yeah, nothing that would help. I'm putting a change in Firefox 96 that will help us debug this. |
Beta Was this translation helpful? Give feedback.
-
I don't think the issue will be fixed, but I'll make sure there's better info so we can debug the problem. 96 is in a month. |
Beta Was this translation helpful? Give feedback.
-
Ok. Thanks for helping me!
Sent with a Spark
…On Dec 8, 2021, 4:08 PM -0500, Michael Kaply ***@***.***>, wrote:
I don't think the issue will be fixed, but I'll make sure there's better info so we can debug the problem.
96 is in a month.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
So just to followup what I'm doing here. I'm putting a patch into firefox 96 that shows the path and content of policies.json. So when Firefox 96 is released, we can revisit and figure out where the file is being read on your machine. So I'll reping you beginning of january. |
Beta Was this translation helpful? Give feedback.
-
Awesome! Send me a message when that’s up please!
Sent with a Spark
…On Dec 14, 2021, 11:13 AM -0500, Michael Kaply ***@***.***>, wrote:
So just to followup what I'm doing here. I'm putting a patch into firefox 96 that shows the path and content of policies.json.
So when Firefox 96 is released, we can revisit and figure out where the file is being read on your machine. So I'll reping you beginning of january.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
@Mithrandir918 if you manage your Macs with MDM, like JAMF or Filewave, you can simply deploy a mobileconfig policy to them. |
Beta Was this translation helpful? Give feedback.
-
And I got that working! Thanks!
Sent with a Spark
…On Dec 15, 2021, 11:03 PM -0500, Angela ***@***.***>, wrote:
@Mithrandir918 if you manage your Macs with MDM, like JAMF or Filewave, you can simply deploy a mobileconfig policy to them.
I have a copy of what I use in my notes, maybe it'll help: https://github.com/angela-d/brain-dump/tree/master/sysadmin/macos/mdm-profiles
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
Hi! I'm sorry for the trouble, but I do not quite understand how to use this. Specifically, I'm trying to use the ExtensionSettings command to prevent me from uninstalling some extensions. Could someone please try and walk me through this? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions