Closed Bug 598479 Opened 14 years ago Closed 14 years ago

Clear Recent History Does Not Delete Local Storage Data

Categories

(Firefox :: General, defect)

defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 527667

People

(Reporter: mcoates, Unassigned)

Details

Note: This behavior was observed in Firefox 4 Beta 6 and also 3.6.10 I confirmed this issue in a vanilla profile with no add-ons. Issue The "Clear Recent History" button/link (preferences->privacy when set to "remember history") does not clear local storage data. This is unexpected behavior because the "Clear All History" button/link (preferences->privacy when set to "never remember history") does clear local storage data. Steps to reproduce: 1. Go to any site 2. Use javascript in URL to add to localstorage javascript:localStorage.setItem('fooName','barValue'); 3. Go to privacy and click clear recent history and close browser 4. Return to site javascript:alert(localStorage.getItem('fooName')); 5. Observe localstorage data is still there If you repeat the above steps but perform the following instead at step 3, then the local storage data is actually deleted. #3. Go to privacy, change setting to "never remember history" and click "clear all history" Expected Action Clicking clear recent history will clear all cookies and also clear local storage data. This would be the same behavior as clear all history but limited to the selected time frame.
Note: I also tested this on a site with localstorage modification via inline script tabs. The url scripting is just an easy test case.
Product: Core → Firefox
QA Contact: general → general
Status: NEW → RESOLVED
blocking2.0: --- → betaN+
Closed: 14 years ago
Resolution: --- → DUPLICATE
blocking2.0: betaN+ → ---
Flags: in-moztrap+
Flags: a11y-review?
Accessibility review is not needed for this bug. Clearing flag.
Flags: a11y-review?
You need to log in before you can comment on or make changes to this bug.