Pin extensions #1000
Replies: 16 comments 23 replies
-
I'm fixing this here: https://bugzilla.mozilla.org/show_bug.cgi?id=1813108 Hopefully something in the next version of Firefox. |
Beta Was this translation helpful? Give feedback.
-
Hey @mkaply, I asked about this feature in a post at https://www.reddit.com/r/firefox/comments/135w9rs/automating_pinning_extensions_to_the_toolbar/ where I was told it would be in version 113. I've reviewed the code changes and tested it thoroughly in 113.0.0, 113.0.1, and 113.0.2, but it doesn't appear to be implemented yet. It also isn't mentioned in the release notes anywhere, nor is it mentioned in the policy documentation. Has this feature been released yet? If not, any idea what version we will see this in? Thanks! |
Beta Was this translation helpful? Give feedback.
-
So it's there, but I accidentally missed documenting it. I just added it to the ExtensionSettings section: https://github.com/mozilla/policy-templates/#extensionsettings It's called "default_area" Sorry about that. I'll get it more official in the next release |
Beta Was this translation helpful? Give feedback.
-
Yes, sorry, this isn't a global change. It only works explicitly for extensions installed via policy. https://searchfox.org/mozilla-central/source/toolkit/components/extensions/ExtensionActions.jsm#517 We don't provide a way to change this globally. From the docs, it didn't look like other browsers do, but I could be wrong. |
Beta Was this translation helpful? Give feedback.
-
Okay... to complete my testing, I went with a 100% policy install and configuration of extensions without side-loading. As I suspected, this required a network connection to install the extensions when the policy was applied (Firefox is opened). In conclusion, for anyone needing a pre-install solution due to connectivity issues, there are 2 options.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for all this investigation, I really appreciate it. I am going to see if I can just make the default_area work with non policy extensions. |
Beta Was this translation helpful? Give feedback.
-
I just ran a quick test with this in ExtensionSettings: { And when I installed https://addons.mozilla.org/en-US/firefox/addon/extended-color-management/ manually, it was placed on the navbar. So it does work for manually installed addons. I'm wondering if it doesn't work for sideloaded addons because they are disabled by default? How exactly are you sideloading? |
Beta Was this translation helpful? Give feedback.
-
Do you know what install_location is in this case? Does it create an extensions directory in the Firefox directory? (there are so many different ways to sideload/preload addons) |
Beta Was this translation helpful? Give feedback.
-
Sorry, a couple more questions. I know it's been a bit. Are you using the ESR? Were the extensions placed in /usr/lib/firefox-addons/extensions/ enabled by default or did you have to enable them? (That seems like sideloading of extensions) |
Beta Was this translation helpful? Give feedback.
-
I can't get this to work at all. I tried all the variations from the previous JSON suggestions, except for the ones that do all install of the extensions. Here is what I have. I am using Active Directory GPO to push out the install. using "Extensions to Install", "Prevent exensions from being disabled or removed". I am using the "Extension Management" to try to pin 2 of the extensions to the navbar/toolbar. Here is the JSON inside of "Extension Management":
is my JSON wrong? |
Beta Was this translation helpful? Give feedback.
-
What do you see when you go to about:policies? I'll test this locally. |
Beta Was this translation helpful? Give feedback.
-
Here is what I got...
![Screenshot 2024-03-06 112850](https://github.com/mozilla/policy-templates/assets/9736287/532841c1-e57b-4b49-80ad-f398464a44b4)
I also checked the Errors, but I don't know if this is from previous when I was using the "ExtensionSettings". if this is old log, can it be cleared?
![Screenshot 2024-03-06 112924](https://github.com/mozilla/policy-templates/assets/9736287/e09b96e2-b536-493e-aa6b-f31279e1f691)
I also noticed that when you enable Extension Management it also turns on Extension Management (JSON on one line). But in the Extension Management (JSON on one line) it shows: "[email protected]": {
Not sure if that is correct.
Additional UPDATE:
I downloaded the latest ADMX pack, still the same (I was only a month behind anyway)
I tried to use the JSON on one line and I would get the error messages, "JSON string couldn't be parsed", "Invalid parameters specified for ExtensionSettings."
|
Beta Was this translation helpful? Give feedback.
-
should I open an issue report for this? |
Beta Was this translation helpful? Give feedback.
-
I have it on my todo list, hoping to debug today or tomorrow. |
Beta Was this translation helpful? Give feedback.
-
So I got the JSON wrong. It should be { (Notice the outer brackets) Also, it only works the first time the addon is installed. |
Beta Was this translation helpful? Give feedback.
-
I'm not seeing a way to enforce that extensions be pinned. Is that something that could be added, whether as part of the Extension Management JSON options or somewhere else? I'm using this to push out a Password Manager extension to our users and I'd like for it to be easy to find, meaning pinned right off the bat rather than having to tell them to go find it and pin it.
Beta Was this translation helpful? Give feedback.
All reactions