Closed Bug 530235 Opened 15 years ago Closed 14 years ago

Windows "Recent Documents" and Privacy (private browsing, clear recent history)

Categories

(Firefox :: Private Browsing, defect)

All
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3.7a1

People

(Reporter: faaborg, Assigned: ehsan.akhgari)

Details

(Keywords: privacy)

Attachments

(1 file)

This is a follow up bug from bug 528416 comment # 11, where sdwilsh notes that we control the entries in the Window's Recent Documents menu.

When we are in private browsing mode, we should be sure to never add anything to the Recent Documents menu.  Additionaly if we actually have the ability to remove entries (and not just control what we add) we should remove any entries that we added based on the time range of a Clear Recent History operation.
Should be pretty easy to add a mInPrivateBrowsing check to nsDownload::SetState before the call to SHAddToRecentDocs.
(nsDownloadManager::gDownloadManagerService->mInPrivateBrowsing, I guess)
Attached patch Patch (v1)Splinter Review
Assignee: nobody → ehsan.akhgari
Status: NEW → ASSIGNED
Attachment #422467 - Flags: review?(sdwilsh)
Keywords: privacy
Comment on attachment 422467 [details] [diff] [review]
Patch (v1)

I guess writing a test for this would be rather tricky given our troubles with test_bug_401430.js... I take it you've tested it manually, though :)
Attachment #422467 - Flags: review?(sdwilsh) → review+
Comment on attachment 422467 [details] [diff] [review]
Patch (v1)

ui-r+ based on described functionality
Attachment #422467 - Flags: ui-review+
http://hg.mozilla.org/mozilla-central/rev/984c67bbd6c1
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-litmus?
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.7a1
(In reply to comment #4)
> (From update of attachment 422467 [details] [diff] [review])
> I guess writing a test for this would be rather tricky given our troubles with
> test_bug_401430.js... I take it you've tested it manually, though :)

Yes, that is why I didn't write a test for it.
Flags: in-litmus?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: