Open Bug 1870709 Opened 2 years ago Updated 1 month ago

[meta] Add support for multiple private browsing mode ids

Categories

(Firefox :: Private Browsing, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: abhishekmadan, Unassigned)

References

(Depends on 10 open bugs, Blocks 1 open bug)

Details

(Keywords: meta)

Attachments

(1 obsolete file)

Edit emz:

This project is for updating Gecko to support multiple private browsing ids. Currently we only support privateBrowsingId = 0 (normal browsing) and privateBrowsingId = 1 (private browsing).

This behavior has the shortcoming that we can only have one private browsing session at a time. It also means that when we want to restart private browsing there can be race conditions. We don't know when a private browsing session has fully torn down and starting a new one uses the same ID thus sharing the storage bucket.

For storage and cache implementations (Anything that holds PBM state) we key PBM data differently. Some of the implementations do it properly: they key off the OriginAttributes suffix thus incorporating the private browsing (PBM) id in their key. This means switching over to multiple private browsing ids automatically creates separate buckets for separate sessions / ids.
Unfortunately there are a lot of implementations that simply look at PBM id 0 vs 1 and then manually manage two buckets. These implementations need to be updated to properly key off the PBM id, potentially via OriginAttributes suffix, or just the id.

This project will not only help with avoiding race conditions with PBM teardown. It also enables handling PBM more flexibly in the future: Multiple PBM ids allow us to have multiple, isolated PBM sessions in different windows, or even per tab.

Attached file WIP: Bug 1870709 - test (obsolete) —
Attachment #9369495 - Attachment is obsolete: true
Summary: Adding support for multiple private browsing mode ids → [meta] Add support for multiple private browsing mode ids
See Also: → 1694026
No longer blocks: 1551280
Severity: -- → N/A
Priority: -- → P3
Depends on: 2011683
Depends on: 2011684
Depends on: 2011685
Depends on: 2011686
Depends on: 2011687
Depends on: 2011688
Depends on: 2011689
Depends on: 2011691
Depends on: 2011694
Depends on: 2013065
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: