First-Party Isolation (FPI) is an optional privacy feature built-in to Firefox that enforces stricter security policies to block tracking between websites. Essentially, every website you visit will store data separately and isolated from every other website you visit. So what could go wrong?
First-Party Isolation offers the same privacy protection within one browser as you would get if you open one website in Safari (or another web browser) and then open another website in Firefox. Network connections, caches of different types, cookies and other persistent data stores would work as normal but there is no known way for one website to save data in a way that could be read by any other website.
This is a more complete protection against cross-origin tracking between different websites by traditional means like the option for disabling third-party cookies and storage found in most web browsers. FPI was originally designed for use in the privacy oriented Tor browser, which is based on Firefox.
Mozilla have been really quite about this feature. It was first introduced in Firefox 55 after years of development work, but wasn’t mentioned in the official release notes or marketing. I’m not sure whether that is because Mozilla consider it unsafe, unpractical, or don’t want to commit to maintain the feature in future releases.
First-Party Isolation is a fundamental change in how the web browser operates and it breaks many assumptions made by web developers. If you want to enable the feature and gain better privacy than you also have to pay the price of breaking those assumptions.
Here is a list of the types of problems you can expect to run into with FPI enabled:
Third-party login failures
Mozilla ran a study where they looked at how many issues people would run into if they enabled one of eight different privacy-enhancing settings in Firefox. The study found that people in the group with First-Party Isolation enabled reported the most number of issues out of any of the test groups.
The same study found that people ran into trouble with Facebook and Google domains, and had trouble login in to websites. Both Facebook and Google provide authentication and login services for other websites that don’t always work as expected when you enable FPI.
Depending on the implementation, you click on a login button on a website which opens a window with either Facebook or Google. This new window is opened in a new security context and is isolated from the originating website. Users can poke a whole in the isolation barrier by changing the privacy.firstparty.isolate.restrict_opener_access option to true, which allows for some communication between the login provider and the original website. However, changing this option only makes the login break later in the process.
Users can sometimes work around these issues to some degree. E.g. a comment form from Disqus or Facebook is loaded inside a frame on the original page. By right-clicking on the frame and choosing This Frame: Open Frame In a New Tab, you’ll end up on a new frame with just the comment form with the origin as either a Disqus or Facebook domaim. By loading the frame from the original origin, you’ll have access to the cookies for that origin and can login and comment as per normal.
To fully resolve this issue, the login service providers has to change their products to work with stricter origin controls. Unless Mozilla were to enable FPI by default, I doubt any company will invest any time or money in fixing these issues.
No migration path
You loose all your cookies, caches, and data stores when you first enable First-Party Isolation in Firefox. Firefox doesn’t record the origin of data before enabling the setting, so existing user data has to go when switching to a stricter origin-policy.
Firefox can’t record this data before isolating websites from each other as it otherwise wouldn’t know which changes were made by which website if multiple websites had access to read and write to the same data stores. It’s kind of an unavoidable problem, as I see it.
The initial loss of logins, website settings, and avalanche of reappearing cookie consent toolbars could help explain for the higher number of issue reports in Mozilla’s study. Mozilla doesn’t mention this issue specifically in any publication.
As I noted only recently, Google reCAPTCHA has a 99,3 % global marketshare in CAPTCHA services.
No CAPTCHA reCAPTCHA uses Google’s knowledge and insights about you from tracking you around the web to determine whether you’re a computer or a human; instead of asking you to pass a cognitive tests. Google seem to have reduced confidence in their ability to identify you as a human with reduced tracking and an unusual number of unique users (every website is assigned different tracking/user ID/user instead of sharing the same ID) from your IP address.
In my own experience, I’ve had to spend more time and energy trying to manually solve the harder reCAPTCHA options rather than bypassing it altogether with Google’s No CAPTCHA reCAPTCHA after enabling First-Party Isolation in Firefox.
Less shared caching means more data usage
Firefox doesn’t set aside more disk storage space for its cache when enabling FPI. The browser thus have to store multiple copies of the same files in the same amount of disk space; which causes reduced efficiency for prioritizing what to keep in the cache and what to delete.
Depending on your location and internet connection, enabling First-Party Isolation in Firefox may significantly increase costs and slow down page loading times.
Can’t log-in to many extensions
The extension API for OAuth2 logins,
browser.identify.launchWebAuthFlow, fails to inform extensions about whether logins failed or succeeded. Extensions will wait for login attempts forever; believing the user just haven’t completed it yet.
You can work-around the problem temporarily by disabling First-Party Isolation, restarting the browser, logging in to the extension, and then re-enabling First-Party Isolation. Depending on the configuration of the service you login to,m you may nee to repeat the process every few months, weeks, days, or even hours.
Update : Added information about login issues with extension API.
Other extensions assume that they can access cookies cross-domains in a way that is prohibited by First-Party Isolation.
Can’t log-in to Pocket
Pocket is Mozilla’s reading list and article recommendation service that you’ll find built-right in to Firefox. Unfortunately, you can’t login to Pocket when First-Party isolation is enabled.
You can work-around the problem by temporarily disabling First-Party Isolation, restarting the browser, logging in to Pocket, and then re-enabling First-Party Isolation. The process must be repeated every six months or so.
Update : Added information about Pocket login issues.
Enabling First-Party Isolation
You can enable the feature by typing about:config in the address field, changing the privacy.firstparty.isolate option to true, and restarting Firefox. You should only enable the feature if you’re prepared to run into a few issues now and then.
I’ve enabled First-Party Isolation myself and have used it for months already. It can be annoying, but I believe it to overall be a good security and privacy feature that I hope Firefox can one day enable by default. You can check out the Tor Browser if you wish to use a web browser based on Firefox that enables this feature by default.