Closed Bug 826865 Opened 12 years ago Closed 11 years ago

Do not store offline cache data in private mode

Categories

(Firefox :: Private Browsing, defect)

20 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 819496

People

(Reporter: lizzard, Unassigned)

Details

(Whiteboard: [testday-20130104] )

To replicate the bug:

Open a private window using command/ctrl+shift+p

Go to https://hacks.mozilla.org/2010/01/offline-web-applications/

Click on the todo demo link (shortened) http://is.gd/RNGOU6

When prompted, allow the site to store data for offline use.

Try adding a task

Close the Private window

Go to the advanced tab in preferences window and select the network section

https://developer.mozilla.org still shows in the preferences. 

I would expect it not to show up - this seems to me like a leak between private and non-private browsing.
Yeah, we don't block offline cache in PB mode.
Summary: Offline data storage network preferences from private tabs are stored even after private browsing closed → Do not store offline cache data in private mode
I need to verify this, but I believe we don't actually store any data in private windows, but we do store the permission for the site to store data.
(In reply to comment #2)
> I need to verify this, but I believe we don't actually store any data in
> private windows, but we do store the permission for the site to store data.

We also need to change the user prompt to something sensible.
Try the following to reproduce this:

1. Make sure no offline data is stored for a website
2. Open a private window
3. Visit that site and click "Allow"
4. Site itself will behave as if there was no offline data
5. Actually go offline
6. No visit the site in a non-private window
7. Site will show the content stored in the offline cache

Thus, it appears that indeed the data is stored but not used by a private window.
(tested with Firefox 21.0 and the http://html5demos.com/offlineapp site.)
(In reply to Josh Matthews [:jdm] from comment #2)
> I need to verify this, but I believe we don't actually store any data in
> private windows, but we do store the permission for the site to store data.

If so, this is a dupe of bug 819496.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.