WebStorageTest

This page tests my web storage plugin.

The following table tests the presence of any form of webStorage through our plugin.

session local

Simple strings

Session

This section will allow you to save and restore a string value to session storage.

Local

This section will allow you to save and restore a string value to local storage if it's available.

(click to dump all key/value pairs in storage)

Objects

Session

This section will allow you to save and restore an object to session storage. This dangerous example will call eval on the text you enter and store the object.

Local

This section will allow you to save and restore an object to local storage if it's available. This dangerous example will call eval on the text you enter and store the object.

Max size

Session

Click this button to attempt to determine the max size allowed by storage. The upper limit of the test is 100MB. Note that your session storage will be cleared and that this may take some time and thrash your harddrive.

Example output:

==Chrome 6==
storage length: 2609152k
Error: QUOTA_EXCEEDED_ERR: DOM Exception 22

message: QUOTA_EXCEEDED_ERR: DOM Exception 22
name: QUOTA_EXCEEDED_ERR
code: 22

==Firefox 3.6 (consumes 100% CPU core after test ends)==
Successfully stored 100MB

==Safari 5==
Successfully stored 100MB

==Opera 10.5==
Successfully stored 100MB

==IE 8==
storage length: 4976640k
Error: Not enough storage is available to complete this operation. 

number: -2147024882
description: Not enough storage is available to complete this operation. 
message: Not enough storage is available to complete this operation.

Local

Click this button to attempt to determine the max size allowed by storage. The upper limit of the test is 100MB. Note that your local storage will be cleared and that this may take some time and thrash your harddrive. Also note that Firefox takes a very long time.

Example output:

==Chrome 6 & Android==
storage length: 2609152k
Error: QUOTA_EXCEEDED_ERR: DOM Exception 22

message: QUOTA_EXCEEDED_ERR: DOM Exception 22
name: QUOTA_EXCEEDED_ERR
code: 22

==Firefox 3.6==
storage length: 5218304k
[Exception... "Persistent storage maximum size reached" code: "1014" nsresult: "0x805303f6 (NS_ERROR_DOM_QUOTA_REACHED)" location: "http://csh.rit.edu/~ryanw/chaos/WebStorageTest.html Line: 228"]

==Safari 5==
storage length: 2609152k
Error: QUOTA_EXCEEDED_ERR: DOM Exception 22

line: 255
sourceId: 2145080424
sourceURL: http://csh.rit.edu/~ryanw/chaos/WebStorageTest.html
code: 22
message: QUOTA_EXCEEDED_ERR: DOM Exception 22
name: QUOTA_EXCEEDED_ERR

==Opera 10.5 (if you reject the more storage request)==
storage length: 1944576k
Error: QUOTA_EXCEEDED_ERR

message: QUOTA_EXCEEDED_ERR
code: 22

==Opera 10.5 (if you allow Unlimited on more storage request)==
Successfully stored 100MB

==IE 8 (consumes 100% CPU core after test ends)==
storage length: 4966400k
Error: Not enough storage is available to complete this operation. 

number: -2147024882
description: Not enough storage is available to complete this operation. 
message: Not enough storage is available to complete this operation.