Jump to content

Return to Piriform.com

Photo

HTML5 web storage aka localStorage - how to whitelist?


  • Please log in to reply
11 replies to this topic

#1 OFFLINE honestbleeps

honestbleeps

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 10 September 2010 - 04:18 PM

Hello there,

I develop a browser extension that requires HTML5 localStorage for a specific domain (reddit.com). Now that I have a lot of users (in the few thousand range), I'm finding that those running things like BetterPrivacy and CCleaner are losing their settings any time they restart their browser and/or computer.

It looks like CCleaner recently added a way to clean out HTML5 localStorage -- all fine and good, but I can't seem to find anything in the documentation about being able to whitelist localStorage the way you can whitelist specific cookies. Is there any way to do this?

If not, I think it's a pretty important feature to add, as web applications, browser extensions etc have very legitimate uses for this type of storage. Not all cookie and localStorage use is nefarious.

Thanks for any assistance you can provide...

#2 OFFLINE Nergal

Nergal

    Volunteer CCleaner Demon/Post Meddler

  • Moderators
  • 6,353 posts
  • Gender:Male
  • Location:Get off my Lawn, y'darn kids!
  • Interests:being grumpier
    Laughing
    Crying
    Sleep comes Later though.

Posted 10 September 2010 - 06:21 PM

Hello there,

I develop a browser extension that requires HTML5 localStorage for a specific domain (reddit.com). Now that I have a lot of users (in the few thousand range), I'm finding that those running things like BetterPrivacy and CCleaner are losing their settings any time they restart their browser and/or computer.

It looks like CCleaner recently added a way to clean out HTML5 localStorage -- all fine and good, but I can't seem to find anything in the documentation about being able to whitelist localStorage the way you can whitelist specific cookies. Is there any way to do this?

If not, I think it's a pretty important feature to add, as web applications, browser extensions etc have very legitimate uses for this type of storage. Not all cookie and localStorage use is nefarious.

Thanks for any assistance you can provide...

First question: Where on the computer does HTML5 localstorage get saved? (be specific e.g. %appdata%\xxxx, cookies folder, etc). The only place I could find a reference to localstorage was in Safari's Cookie Cleaning (%localappdata%\Apple Computer\Safari\LocalStorage|*.*
)

Second Question: does this occur in only WebKit-based browsers or does it occur in other browsers as well (Please list them if so)
These questions should aid us in figuring out a better way for users not to lose their information. . . andf/or help the developers come up with a stragegy for making sure stuff's not lost.

CCleaner does have a Include/Exclude but you would have to explicitly tell your users to use the exclude section and the exact file or folder that they should be excluding.

Remember two things. 1) we who are answering are just volunteers here 2) the developers of CCleaner read every post so they will either chime in and/or add some sort of mechanism, provided of course that we can get everything answered that needs to be answered.
ADVICE FOR USING CCleaner'S REGISTRY INTEGRITY SECTION
DON'T JUST CLEAN EVERYTHING THAT'S CHECKED OFF.
Do your Registry Cleaning in small bits (at the very least Check-mark by Check-mark)
ALWAYS BACKUP THE ENTRY, YOU NEVER KNOW WHAT YOU'LL BREAK IF YOU DON'T.
CCLEANER, RECUVA, DEFRAGGLER AND SPECCY DOCUMENTATION CAN BE FOUND AT www.piriform.com/docs
Link to Winapp2.ini explanation

#3 OFFLINE honestbleeps

honestbleeps

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 10 September 2010 - 07:12 PM

First question: Where on the computer does HTML5 localstorage get saved? (be specific e.g. %appdata%\xxxx, cookies folder, etc). The only place I could find a reference to localstorage was in Safari's Cookie Cleaning (%localappdata%\Apple Computer\Safari\LocalStorage|*.*
)

Second Question: does this occur in only WebKit-based browsers or does it occur in other browsers as well (Please list them if so)
These questions should aid us in figuring out a better way for users not to lose their information. . . andf/or help the developers come up with a stragegy for making sure stuff's not lost.

CCleaner does have a Include/Exclude but you would have to explicitly tell your users to use the exclude section and the exact file or folder that they should be excluding.

Remember two things. 1) we who are answering are just volunteers here 2) the developers of CCleaner read every post so they will either chime in and/or add some sort of mechanism, provided of course that we can get everything answered that needs to be answered.


Thanks for the response...

It occurs in both webkit browsers and firefox.

I was able to track down the filename in Firefox - it goes in your user profile directory (varies by OS), and it's called webappsstore.sqlite

I can't seem to find solid information on Chrome or Safari, but I'm sure it's in a similar file, probably also sqlite I'd guess.

#4 OFFLINE Nergal

Nergal

    Volunteer CCleaner Demon/Post Meddler

  • Moderators
  • 6,353 posts
  • Gender:Male
  • Location:Get off my Lawn, y'darn kids!
  • Interests:being grumpier
    Laughing
    Crying
    Sleep comes Later though.

Posted 10 September 2010 - 10:50 PM

would you be willing to (either or both) do some extra testing for us and/or give at least one moderator (or winapp2.ini if he's willing) access to your app to do some testing? Basically it involves unchecking everything in ccleaner, and check each item one at a time starting with the obvious ones (personally I'd say firefox>Compress databases or cookies would be a starting point) for each of the browsers. do a clean and see if the file goes missing. Also are you sure that it's not listed in the cookies section of ccleaner?
ADVICE FOR USING CCleaner'S REGISTRY INTEGRITY SECTION
DON'T JUST CLEAN EVERYTHING THAT'S CHECKED OFF.
Do your Registry Cleaning in small bits (at the very least Check-mark by Check-mark)
ALWAYS BACKUP THE ENTRY, YOU NEVER KNOW WHAT YOU'LL BREAK IF YOU DON'T.
CCLEANER, RECUVA, DEFRAGGLER AND SPECCY DOCUMENTATION CAN BE FOUND AT www.piriform.com/docs
Link to Winapp2.ini explanation

#5 OFFLINE Winapp2.ini

Winapp2.ini

    Friendly neighborhood addon manager

  • Beta Testers
  • PipPipPipPipPip
  • 5,923 posts
  • Gender:Male
  • Location:Long Island, New York
  • Interests:Sleeping

Posted 10 September 2010 - 10:56 PM

%appdata%\Mozilla\Firefox\*.profiles|webappsstore.sqlite
edit:
whoops, I didn't read the thread. :lol: I have an entry that effects that file, if it has a winapp1.ini equivalent, I would assume it to be compact databases.

I checked and under the assumption that SpecialKey1=N_MOZ_COMPACT_DATABASES effects all sqlite files, that would most likely be it. I will test it out if you'd like, but for now I'd recommend you tell your users to not compact databases.

I think that since the inclusion of html5, Piriform should separate this option from the normal ones.
edit 3:
I'm like a deity, you just need to say my name in a thread and I appear!

Edited by Winapp2.ini, 10 September 2010 - 11:05 PM.


#6 OFFLINE Nergal

Nergal

    Volunteer CCleaner Demon/Post Meddler

  • Moderators
  • 6,353 posts
  • Gender:Male
  • Location:Get off my Lawn, y'darn kids!
  • Interests:being grumpier
    Laughing
    Crying
    Sleep comes Later though.

Posted 10 September 2010 - 11:02 PM

So I guess the request here is to have control of webappsstore as is given for cookies (also we should find out where safari, chrome save these files, as well as ie9 when it drops next week.
ADVICE FOR USING CCleaner'S REGISTRY INTEGRITY SECTION
DON'T JUST CLEAN EVERYTHING THAT'S CHECKED OFF.
Do your Registry Cleaning in small bits (at the very least Check-mark by Check-mark)
ALWAYS BACKUP THE ENTRY, YOU NEVER KNOW WHAT YOU'LL BREAK IF YOU DON'T.
CCLEANER, RECUVA, DEFRAGGLER AND SPECCY DOCUMENTATION CAN BE FOUND AT www.piriform.com/docs
Link to Winapp2.ini explanation

#7 OFFLINE honestbleeps

honestbleeps

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 12 September 2010 - 12:53 PM

So I guess the request here is to have control of webappsstore as is given for cookies (also we should find out where safari, chrome save these files, as well as ie9 when it drops next week.


Yep, that's exactly it... it'd be awesome if CCleaner supported the exclusion of "HTML5 cookies" aka DOM Storage - especially if it could be done on a per-site basis.. My understanding is that BetterPrivacy (a firefox addon) has this capability.

#8 OFFLINE hazelnut

hazelnut

    try to stay calm

  • Moderators
  • 12,914 posts
  • Gender:Female
  • Location:Huddersfield uk

Posted 12 September 2010 - 01:52 PM

Don't know if this thread may be of interest here.

http://forum.pirifor...showtopic=28116

Not sure if MrT's remark was about looking into the original topic subject or the error on the Piriform page.
CCLEANER, RECUVA, DEFRAGGLER AND SPECCY DOCUMENTATION CAN BE FOUND HERE

http://www.piriform.com/docs

#9 OFFLINE jammm

jammm

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 09 December 2010 - 05:45 AM

+1 to the request for being able to whitelist localstorage per domain name, this is really essential for HTML5 web apps,
the simplest implementation (user interface wise) would be to just merge the functionality of whitelisting cookies, with that of localstorage.
so if the user whitelists cookies for a domain, it would also whitelist localstorage for that domain, after all localstorage is kind of like a "super cookie"

#10 OFFLINE MrT

MrT

    Official Bug Fixer

  • Bug Fixers
  • 478 posts
  • Gender:Male
  • Location:Ontario, Canada

Posted 09 December 2010 - 09:29 AM

Hi everyone,

The "Cookies to Keep" list is also used to keep any local storage data.

Thanks

#11 OFFLINE Andavari

Andavari

    .

  • Moderators
  • 16,638 posts
  • Gender:Male
  • Location:U.S.A.

Posted 09 December 2010 - 12:40 PM

Also don't forgot you can right-click in the 'Cookies to keep' area for extra hidden features!

Piriform software help documentation.

CCleaner is NOT a malware removal tool.

Don't PM me for advice or help! I'll only ask you to read forum rule #15.


#12 OFFLINE jammm

jammm

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 13 December 2010 - 09:55 AM

Hi everyone,

The "Cookies to Keep" list is also used to keep any local storage data.

Thanks


ahhh ok, i think i might have made a mistake then.
it seems i had added "facebook.com" to the cookies to keep section, but omitted to add "www.facebook.com" to the cookies to keep section, once i had done that, CCleaner's cookie whitelist function worked fine.

thanks for the reply.