mozilla / multi-account-containers

Firefox Multi-Account Containers lets you keep parts of your online life separated into color-coded tabs that preserve your privacy. Cookies are separated by container, allowing you to use the web with multiple identities or accounts simultaneously.
https://addons.mozilla.org/firefox/addon/multi-account-containers/
Mozilla Public License 2.0
2.64k stars 323 forks source link

Disable onboarding from Firefox policies #2565

Open rungitringit opened 10 months ago

rungitringit commented 10 months ago

Before submitting a bug report

Step to reproduce

Hello,

I'm creating a policy for a Linux SOE which will be deployed as a part of an OS image. I love that I can specify some default Containers using https://github.com/mozilla/policy-templates for the Firefox Multi-Account-Containers extension to get my users going in the right direction.

I want users to use Multi-Account-Containers without even noticing.

Actual behavior

Unfortunately users are forced to click through the introductory text in the extension - including ads for the Mozilla VPN they can't use in our corporate environment.

These pages are a barrier to usage of the extension. I really want users to use it by default, but I don't want to have to make them click through a few pages to make the extension usable.

Please add logic to skip the introductory text if the extension is installed via Firefox policies. Thank you!

Expected behavior

Some way to automatically skip all the introductory pages for new users when Multi-Account-containers are install as a part of policies.json

Additional informations

In fact it would be awesome if you could work with the people building the Firefox policy templates to add the option to pre-configure which sites go in which containers, but that's another idea!

Provide a copy of Troubleshooting Information page (optional)

No response

mkaply commented 10 months ago

@dannycolin What do you think is the best way to do this?

dannycolin commented 10 months ago

@dannycolin What do you think is the best way to do this?

@mkaply In the popup logic, here, we're retriving the onboarding stage key from localStorage. We then load the appropriate panel according to the value of this key.

What we could do is check if there's a similar key in browser.storage.managed and if there's one we use it instead.

The administrator simply needs to add the key to their policies.json has (funnily you wrote it) explained in https://extensionworkshop.com/documentation/enterprise/adding-policy-support-to-your-extension/ :)

mkaply commented 10 months ago

That sounds perfect. Do you want to take it on or me? FYI, I'll be out the next three weeks, but I can tee it up for October.

dannycolin commented 10 months ago

That sounds perfect. Do you want to take it on or me? FYI, I'll be out the next three weeks, but I can tee it up for October.

I can take it. I'll try to have a patch ready for when you'll be back in october.

DamienCassou commented 7 months ago

In fact it would be awesome if you could work with the people building the Firefox policy templates to add the option to pre-configure which sites go in which containers, but that's another idea!

I would also love that! Should I open a new issue?

mkaply commented 7 months ago

I would also love that! Should I open a new issue?

We already implemented that:)

https://mozilla.github.io/policy-templates/#containers

DamienCassou commented 7 months ago

We already implemented that:)

The policy-templates documentation only mentions specifying containers (with name, color and icon). What @rungitringit and me are looking for goes beyond that: We want a way to specify which domains go into which container.

dannycolin commented 7 months ago

@DamienCassou @mkaply It's definitely a different thing. You can open a new ticket for it if you wish.

mkaply commented 7 months ago

Doh, completely missed that part. Definitely worth opening a ticket. Hopefully it's straightforward.

DamienCassou commented 7 months ago

@dannycolin @mkaply @rungitringit: new issue https://github.com/mozilla/multi-account-containers/issues/2601

VeldoraTheDragon commented 3 months ago

Hi there @dannycolin

I don't like to necrobump, but since the issue isn't marked as solved yet, I'll take my right to ask:

Some of our employees stumbled over the extension and would like to have it in our corporate environment, but as far I've tested, I also had my issues with the introduction and the asking to use sync or mozilla vpn.

I'd like to ask you, what's the status of implementing some configlets for the managed policy, to disable these things? Thank you

dannycolin commented 3 months ago

I can work on this issue but I'd need a mozilla developer to review, cut a release and publish it on addons.mozilla.org.

My primary contact at Mozilla doesn't work there anymore so I'd have to find someone else with some free time to help. Until then, this issue is stalled sadly.

mkaply commented 3 months ago

Is the introductory stuff in the addon or in Firefox?

dannycolin commented 3 months ago

Is the introductory stuff in the addon or in Firefox?

Yes. It's the onboarding in the addon popup.