akyazilim / mvc-mini-profiler

Automatically exported from code.google.com/p/mvc-mini-profiler
0 stars 0 forks source link

QUOTA_EXCEEDED_ERR - Safari (Private Browsing) #152

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use Safari on Private Browsing.
2. Enable profiling.

What is the expected output? What do you see instead?

The library works great, but however Safari behaves differently than other 
browsers. On Safarai you can't set items in the localStorage on private 
browsing.

localStorage[key] = value;
localStorage.setItem(key, value);

The above 2 lines will save to the local storage, but this is prohibited in 
Safari private browsing and throws a javascript exception for 
QUOTA_EXCEEDED_ERR.

I fixed it for me by adding try catches in your save function in the 
includes.js.

Original issue reported on code.google.com by buddyfav...@gmail.com on 3 May 2012 at 9:02

GoogleCodeExporter commented 8 years ago
I updated the save to:
try { localStorage[getVersionedKey(keyPrefix)] = value; } catch (e) { }

Original comment by buddyfav...@gmail.com on 3 May 2012 at 9:07

GoogleCodeExporter commented 8 years ago
can you post on community.miniprofiler.com ... we are retiring these issues 

Original comment by sam.saff...@gmail.com on 4 May 2012 at 2:55