title: Error in local storage - NS_ERROR_FILE_CORRUPTED - firefox
body: <p>I've been working in a web application and I'm using local storage. But for some Firefox users I notice that they're having the following error:</p>
  
  <blockquote>
    <p>NS_ERROR_FILE_CORRUPTED: Component returned failure code: 0x8052000b
    (NS_ERROR_FILE_CORRUPTED) [nsIDOMStorage.setItem]</p>
  </blockquote>
  
  <p>when it called the function:</p>
  
  <pre><code>function setLocalStorageItem(key, value){ 
          localStorage.setItem(key, JSON.stringify(value));
  }
  </code></pre>
  
  <p>It's is a way to avoid this error?</p>