Changes

Jump to: navigation, search

Private Browsing

3,607 bytes added, 01:24, 16 July 2015
Created page with "== Private Browsing == Private Browsing was initially designed as a way for the user to browse websites without having those websites show up in the information saved by Firef..."
== Private Browsing ==
Private Browsing was initially designed as a way for the user to browse websites without having those websites show up in the information saved by Firefox to the persistent storage, and/or later be displayed in the Firefox UI. A secondary use case discovered by the way that people were using the feature was being able to log in to two websites using different authentication information at the same time.

The section below highlights the important aspects.

=== Local privacy ===
Any data containing details such as the full or partial address of the pages visited by the user, or information saved on behalf of those sites either by the site or Firefox should not be written to the disk in a way that is exposed to the user either through the Firefox UI, or through the typical OR provided mechanisms for viewing the information on the disk. This means writing this information to a custom file, or a SQLite database in the user's profile is not permitted. However, protecting against scenarios such as attacking the disk-based page file used by the OS, or forensic analysis is outside of the scope of Private Browsing. This means that keeping that information in memory without any specific protection against the page being cached to the disk, or against probes inspecting the memory of the process at runtime is outside of the scope of private browsing.

==== Exceptions ====
In some specific cases, we decided that for UX reasons, we can take the user action as a request in order for something specific about the website to be remembered, and permit writing such information to the disk. For example, we take bookmarking as an explicit request from the user for the website to be remembered, so we save bookmarks in private windows. (However, we save it as an unvisited bookmark.) As another example, we don't disable saving permissions in the page info dialog from private windows.

=== Isolation ===
Two instances of the same website one running in a normal and one running in a private window must be isolated from each other, and be unable to exchange information through the browser. This is the technical reason why we originally had to keep the cookies for such websites separate, since a session cookie set by a private window could be picked up by a non-private instance of the same site and be saved to the disk from there. The only way that we can ensure that information cannot leak from one such site to the other and find its way to the disk is to make them unable to talk to each other, or be treated as the same by Gecko.

The interesting additional use case of simultaneous logins is a byproduct of this design decision.

=== Stealth ===
The browser should make it difficult for the website to tell if they are in private browsing mode. Without this level of protection, the websites in the example in the above section could communicate to each other and leak information through their common server by the website in the private window phoning home the information and the other instance picking it up in the next sync or such. But the server should have a hard time telling if one of these instances is in private browsing mode. There are also UX reason why users may not want the websites that they are visiting in private mode know that fact.

From a pure technical standpoint, there are a few weak spots in the platform that make it impossible to block this effectively. Also, over the years, it has become more difficult to fix everything in the platform according to this rule. At the present, this is probably a lost cause in practice.
Confirm
657
edits

Navigation menu