Earlier quoted context omitted.
> The question I'm asking myself now is how to fix this. Doesn't the website answer that? Just follow the spec! Firefox isn't vulnerable…
If you do that (like Firefox admittedly does), then my issue with subdomain users using up all local storage comes into place. It would really suck for github (for example) not to be able to use local storage in their UI because pilif.github.com used up all available storage for the whole domain.
HTML5 localStorage allows sites to fill up users' hard disks
181–190 of 191 posts
Re: HTML5 localStorage allows sites to fill up users' hard disks
#182Earlier quoted context omitted.
You could simply fill up your subdomain's local storage and then do a javascript redirect to another subdomain.
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
#183The Chromium developers really dislike localStorage ( http://code.google.com/p/chromium/issues/detail?id=58985#c7 ) They'll have to fix this bug, but I won't be surprised if they try to remove localStorage entirely soon.
It sound like they hate synchronous APIs. Well, the synchronous nature of it wouldn't be a problem if: 1. JS has a language-level support for asyncrony. 2. The implementation of retrieval was performant enough or allowed for some way to control granularity of reads from the code. I really dislike that the idea that the only simple API for local storage will be gutted because of reasons quite tangential for what it do…
Re: HTML5 localStorage allows sites to fill up users' hard disks
#184Earlier quoted context omitted.
I'd argue that a user generally has an idea that there is a persistent storage ("disk") locally held in their computer and that they have a good idea whether they want a website to use that space or not. The developer lacks the knowledge of the users requirements, that is why they can't answer the question. For "power users" the user is far better placed than the developer to answer the question about how much local…
> and that they have a good idea whether they want a website to use that space or not. "What's a website? I just double-clicked on my e-mail google and now Foxfire wants to fill up my disks. Is this going to put a virus on my Microsoft? Why don't they put it up in the clouds?"
Re: HTML5 localStorage allows sites to fill up users' hard disks
#185Earlier quoted context omitted.
Prompt is the best solution to this. There's a prompt with flash.
Prompt is a horrible solution from a UX perspective. Essentially you're asking the user a question you, as a developer, couldn't or didn't want to answer. But the user has no idea either. Heck, she doesn't even know that there are limits in place or what DOM local storage even is.
Re: HTML5 localStorage allows sites to fill up users' hard disks
#186Earlier quoted context omitted.
Prompt is a horrible solution from a UX perspective. Essentially you're asking the user a question you, as a developer, couldn't or didn't want to answer. But the user has no idea either. Heck, she doesn't even know that there are limits in place or what DOM local storage even is.
I'd argue that a user generally has an idea that there is a persistent storage ("disk") locally held in their computer and that they have a good idea whether they want a website to use that space or not. The developer lacks the knowledge of the users requirements, that is why they can't answer the question. For "power users" the user is far better placed than the developer to answer the question about how much local…
Re: HTML5 localStorage allows sites to fill up users' hard disks
#187Earlier quoted context omitted.
It sound like they hate synchronous APIs. Well, the synchronous nature of it wouldn't be a problem if: 1. JS has a language-level support for asyncrony. 2. The implementation of retrieval was performant enough or allowed for some way to control granularity of reads from the code. I really dislike that the idea that the only simple API for local storage will be gutted because of reasons quite tangential for what it do…
So synchronous APIs wouldn't be a problem if they were 1. Asynchronous or 2. Guaranteed to be really really fast? You do realize that the problem is that you can't guarantee that spinning rust will be fast, right?
Both of these things are true.
Re: HTML5 localStorage allows sites to fill up users' hard disks
#188Earlier quoted context omitted.
Prompt is a horrible solution from a UX perspective. Essentially you're asking the user a question you, as a developer, couldn't or didn't want to answer. But the user has no idea either. Heck, she doesn't even know that there are limits in place or what DOM local storage even is.
That's a bit like saying passwords and PINs are bad from a UX perspective. In a way, you're right, because any user flow gets simpler and smoother if you remove a password prompt, but it's pretty obvious why these things still need to exist.
However, I'd say that prompts that may pop up whatever you're currently doing and ask for things most users cannot make an informed decision about. Eric Lippert once nicely summarised the problems in [1]. And while browser's confirmation dialogs are usually no longer modal, the problem persists. In the vast majority of cases the wanted result is »increase storage limits«. That this might pose a denial-of-service risk is something they are often not aware. And if you try telling them up-front they either won't read it or are needlessly scared. It's a hard problem, actually, especially given user habits concerning message boxes, confirmations and stuff.
[1]: http://www.mikepope.com/blog/AddComment.aspx?blogid=480
Re: HTML5 localStorage allows sites to fill up users' hard disks
#189Re: HTML5 localStorage allows sites to fill up users' hard disks
#190Earlier quoted context omitted.
There really isn't an easy way to avoid this problem even if you follow the standard fixed quota per domain and subdomains don't count policy. You could just embed iframes to diskeater1.net, diskeater2, etc and fill up the disk that way. In the end, the problem is that one page can itself infer to other domain / subdomains in its document and those can execute and utilize localstorage. They have to, though, so you ca…
Prompt for origins that have never been visited directly by the user.