Mark PrivateBrowsingModeAvailability as unsupported in Firefox Enterprise
Categories
(Firefox :: Enterprise Policies, task)
Tracking
()
People
(Reporter: janika, Assigned: janika, NeedInfo)
References
Details
Attachments
(1 external file)
The PrivateBrowsingModeAvailability policy is listed in policies-schema.json with "firefox_enterprise": { "version_added": "149" }, but as of now it cannot be supported in Firefox Enterprise because the Firefox Enterprise Launcher Tool loads its content in a private browsing window, so the values that disable private browsing or force it on would break FELT.
| Assignee | ||
Comment 1•4 days ago
|
||
The Firefox Enterprise Launcher Tool (FELT) launches the browser as a private browsing window,
so this policy can't be supported in enterprise builds.
Comment 2•4 days ago
|
||
We can't do this unilaterally, it will need to be a product decision.
We deprecated DisablePrivateBrowsing in Firefox enterprise in favor of this API.
| Assignee | ||
Comment 3•4 days ago
|
||
Then the product decision must be whether we launch FELT with a private browsing window. But as long as this is the case we must not support private browsing in favor of FELT being able to launch.
Comment 4•3 days ago
|
||
Thanks for flagging this. It made me look at how FELT handles private browsing, and I found something we need to fix.
I wrote a FELT test that runs PrivateBrowsingModeAvailability with values 1 and 2, both from the console and from a local policies.json. Good news: FELT launches and signs in correctly in all four cases. The FELT window opens as private directly, so it stays private even when the policy disables private browsing in the FELT process.
You were right that value 2 causes a problem, though. With private browsing forced, the SSO cookies are injected into the browser's non-private cookie jar. Every window is private, so web pages never see them and users would have to sign in to SSO apps again.
The fix looks small: CookieService::AddNativeForFelt can inject into the private jar when browser.privatebrowsing.autostart is set. The policy is applied before the cookies are injected, so the timing works.
So I think we can keep supporting the policy. Would you like to take the fix? I have the test ready to share, and it currently fails for value 2, so it should confirm the fix.
| Assignee | ||
Updated•1 day ago
|
Description
•