Open Bug 2096935 Opened 4 days ago Updated 3 days ago

Mark PrivateBrowsingModeAvailability as unsupported in Firefox Enterprise

Categories

(Firefox :: Enterprise Policies, task)

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.

The Firefox Enterprise Launcher Tool (FELT) launches the browser as a private browsing window,
so this policy can't be supported in enterprise builds.

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.

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.

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.

Flags: needinfo?(jneuberger)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: