Closed
Bug 1506570
Opened 6 years ago
Closed 6 years ago
removeCookies deletes localStorage
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: MarkBauer, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
Steps to reproduce:
Created a Webextension that called "browser.browsingData.removeCookies({});"
Actual results:
All Cookies got removed, but so did the Local Storage.
I tested this by opening a new tab while having Tabby Cat (https://addons.mozilla.org/en-US/firefox/addon/tabby-cat-friend/) as my newtab page.
The result: All items were gone.
Expected results:
Should've deleted global Cookies, while retaining Local Storage for all pages/extensions.
Note: The above Useragent is incorrect. The test results refer to
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0
Comment 2•6 years ago
|
||
This is expected see comment#6 in bug 496560
Cookies and localstorage are treat as the same to protect the users from tracking.
localstorage is for example disabled if you disable cookies.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Component: Untriaged → General
Resolution: --- → WONTFIX
Thanks!
I've added a warning to the developer docs at https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/browsingData/removeCookies
I've already found an alternative solution that leaves localStorage intact.
You need to log in
before you can comment on or make changes to this bug.
Description
•