Bug 2034430: unlock identity.fxaccounts.remote.root in browser_relay_signup_flow_showToAllBrowsers.js for enterprise builds#780
Conversation
1rneh
left a comment
There was a problem hiding this comment.
My first thought was that this test can be skipped because Relay is a feature coupled to Firefox Accounts which is not supported in enterprise builds, hence this test should also not pass with an unlocked preference because Relay shouldn't be available/surfaced in enterprise builds in the first place.
You're raising a good point, maybe the test should run on enterprise build to assert relay is properly blocked ? |
Should we disable this pref? |
At first that may be a good idea, but maybe we want |
The need is not so clear to me why relay should be disabled at build time since that's not what we do for other non-enterprise functionalities. Setting the preference to That what we do with |
I think we can still skip this one. But also add a test that's only run in enterprise builds that asserts that the expected relay item is not surfaced? That approach seems less invasive and less prone to merge conflicts? |
|
Okay so this is what I will do
|
You can also simply update this PR and leave a comment on the Bugzilla item explaining why we are skipping the test in enterprise builds. This way the contents of the conversation in this PR are not becoming obsolete.
Yes!
Maybe @lissyx can elaborate here a bit? |
Well, any feature we absolutely do not use, I think it's better the code is just not there to reduce risks, and it's something we would have on m-c, assuming relay would never be something we care about (which may not be true, I dont know). Setting the preference may work, but i'm just unsure how all the rest of the code will behave when reading this: https://searchfox.org/firefox-main/rev/a358f48a49a4d72df7b214805c4b2d2049d34a5a/toolkit/components/satchel/integrations/FirefoxRelayUtils.sys.mjs#16-22 Probably easier to just ask to the people working on it what is the best course of action here
I dont have an opinion yet on how we should do it, but I agree the current state is hard to track |
Yep, I agree on that
👍
I'm not sure what I can elaborate more, I was just sharing the idea: if the feature is completely disabled and no code is compiled, then tests would not have to run as well |
Generally I agree, but so far it just hasn't been anything we explored for other non-enterprise functionalities unless for simple So I think this highlights a broader question about which services we want to offer in Firefox Enterprise. What do we do about Relay, Monitor and Mozilla VPN (Note: That's not Firefox VPN) in the enterprise builds? Do we disable all, only some, none? Let's discuss this with the team.
Yes, 100%. I can help out with that, as I've worked on parts of the Relay integration into the password manager in my previous team :) |
…signup_flow_showToAllBrowsers.js for enterprise builds
Regarding the general strategy about those features let's discuss later then |
Not for non enterprise features, but it's not unheard off in other context, I can remember of
👍
Ah, cool! |
Description
Bugzilla: Bug-2034430
The pref is locked in the test
MOZ_BYPASS_FELT=1 ./mach mochitest toolkit/components/passwordmgr/test/browser/browser_relay_signup_flow_showToAllBrowsers.jsDependencies / Related Issues
Screenshots
Testing
See issue
Here with the changes, passing