-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
what are "current" cookies and localStorage items? #37
Comments
Hi practik, indeed the option is actually not accompanied by explanations for the moment :p The LocalStorage is a quite new feature of HTML5 that allows developers to create data in your device using JavaScript. Cookies are just one type of storage, but now, there are others... From the point of view of privacy and security:This kind of persistant data (even after clearing cache), was invented to store small data allowing the operation of online applications, but offers new and better ways of tracking. Thus, any third party JavaScript library that runs on a website can access to the LocalStorage of the current page and read data stored by another domain on this same page: that is not possible with cookies which are mostly not cross domain. This offers a more accurate way to track users. And, if any third party library is compromised and their minified.js script gets altered, this can cause significant data leaks, especially since websites store private or identifying data... Development problems:
These points make today effectively support this feature is difficult, but it is impossible in my opinion to let the public ignore that this technology is replacing cookies invisibly (on which all the attention is focused), and that it is much more dangerous than them. Links: To answer your questions:
|
Thanks for the information! About the wording: I think "current" is probably OK. I did understand it as you intended it to be understood; I was only uncertain because the numbers in the menu don't match the numbers in the full CQM interface. If you get more questions about "current," you could also consider "Delete cookies for this page (0)," which is just a little longer. About the example: Just to clarify: The CQM menu shows 3 localStorage items, but the Firefox Storage Inspector shows 0 – which is correct? And I should have mentioned that I do have FPI enabled, in case that helps you investigate the bad cookie counting. |
Thank you for the wording, I keep it if ever the question reappears :)
Firefox Storage Inspector is wrong :p
Ok, a mix of FPI/non FPI cookies are problematic in the menu, i will try to fix that. |
So CQM shows cookies and localStorage items that are missed by Firefox's built-in tools? Nice! You might want to mention that in the description, here and on AMO – it seems like a very useful feature. |
Let's say that I thought I had broken something in my profile causing the loss of display of storage data in this tool; but apparently I'm not the only one. |
Hi, can you please also confirm that there is no more counting problem under FF62? |
Because of the bug we discussed above, I can't say whether the localStorage counts are accurate or not. But the menu cookie counts all match the counts in the main interface. I tested on a few different sites. |
One other thing I noticed: For pages with no localStorage, the menu shows a count of zero:
But for pages like about:addons, and also for domains that are blocked (in my Firefox preferences) from setting any cookies or site data, the menu shows no count:
Is this intentional? Why not show a zero for those pages too? |
Ok thank you.
To count LocalStorage keys I need to inject a script into the page. But about:addons/AMO is one of the protected pages where i can't do this kind of action. |
That makes sense for protected pages, but why is there no count for domains that are blocked from setting cookies and site data? |
Hi ysard, I just updated to 0.3rc4, thanks for the update!
The menu now offers options to delete "current cookies" and "current localStorage." Can you tell me more about what that means?
I would guess that "current" means "for the current browsing context" – but if that's what it is, then the information on the menu doesn't match the information in the full CQM interface and/or in Firefox's Storage Inspector.
For example, on the Github tab where I'm typing this right now, the menu says:
But CQM shows 5 cookies for
github.com
and 3 for.github.com
. And if I check the Storage Inspector, it shows the same 8 cookies but no localStorage items. So … I'm confused. Can you explain?The text was updated successfully, but these errors were encountered: