It would be fun to execute this against a mobile device, where storage is expensive. 2GB might be all that is required to choke the device.
A neat client-side DDoS :)
I _believe_ that both quotas can be increased after confirmation from the user, but I haven't made any tests.
- register 1000 domains
- when the browser navigates to the first domain, store 5Mb
- once the store has finished, redirect to the next domain
- repeat steps 2-3 ad infinitum
Anybody know if this would work?The documentation at http://dev.w3.org/html5/spec/offline.html#disk-space states that "care should be taken to ensure that the restrictions cannot be easily worked around using subdomains", so one would really have to use different domains as you write, which sounds a bit costly.
Edit: Ooops; didn't see the comment above about sub-domains. Worth a try though!
localStorage is the one that prompts the user for more than 5MB, but the author was using application, which I've never seen prompt.