Re:HTML5 localStorage allows sites to fill up users' hard disks
by ma2rten on Thursday February 28, 2013 @04:44AM
(#5297935)
You could simply fill up your subdomain's local storage and then do a javascript redirect to another subdomain.
Re:HTML5 localStorage allows sites to fill up users' hard disks
by robryan on Thursday February 28, 2013 @07:58AM
(#5298441)
Not if the browser only counted user navigations when deciding how space should be allocated.
Re:HTML5 localStorage allows sites to fill up users' hard disks
by emn13 on Thursday February 28, 2013 @05:11PM
(#5301453)
It's too complicated. I don't think this is a real problem. Better to just evict a random subdomain entirely (or on an LRU scheme). After all, just like cookies, there's no guarantee the localStore will stick around, so any normal site needs to deal with this anyhow.
You'd have to store the other domains your page has written to in its own local storage area, but it doesn't seem to me like the book keeping would be that complicated.
You could use a coarse rule of all data in a.mydomain.com counts, and use a larger quota of n * per-domain-limit.
You could visit as many legit-site.tumblr.com addresses as you want with this rule.