title: ngStorage crashes in Chrome iframe
body: <p>Chrome denies access to localStorage when run inside a cross domain iframe.<br>
  This causes ngStorage to crash the entire application</p>
  
  <p>Demo:
  <a href="http://jsfiddle.net/e8y85/" rel="nofollow noreferrer">http://jsfiddle.net/e8y85/</a></p>
  
  <p>Stacktrace:</p>
  
  <pre><code>Error: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
      at Error (native)
      at Object. (https://rawgit.com/gsklee/ngStorage/master/ngStorage.js:42:41)
      at Object.d [as invoke] (https://code.angularjs.org/1.1.5/angular.min.js:28:304)
      at https://code.angularjs.org/1.1.5/angular.min.js:30:39
      at c (https://code.angularjs.org/1.1.5/angular.min.js:27:142)
      at d (https://code.angularjs.org/1.1.5/angular.min.js:27:276)
      at Object.instantiate (https://code.angularjs.org/1.1.5/angular.min.js:28:434)
      at https://code.angularjs.org/1.1.5/angular.min.js:53:326
      at https://code.angularjs.org/1.1.5/angular.min.js:44:274
      at n (https://code.angularjs.org/1.1.5/angular.min.js:7:74) 
  </code></pre>
  
  <p>As Dave already said this happens when blocking tracking cookies.
  However forcing our users to accept tracking cookies is not an option</p>
  
  <p><img src="https://i.stack.imgur.com/B02MA.png" alt="Chrome Security Settings"></p>
  
  <p>Is there any workaround in terms that it does not crash?<br>
  <strong>Losing the stored data is not an issue.</strong></p>
  
  <p>Default browser settings:<br>
  <a href="http://www.neowin.net/news/study-shows-ie10-to-have-better-privacy-protection-than-rivals" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aIAN8.jpg" alt="Browser defaults"></a></p>