[html5] r4381 - [giow] (0) Mention that .localStorage can throw in the case of policy decisions.

whatwg at whatwg.org whatwg at whatwg.org
Wed Nov 25 17:37:47 PST 2009


Author: ianh
Date: 2009-11-25 17:37:44 -0800 (Wed, 25 Nov 2009)
New Revision: 4381

Modified:
   complete.html
   source
Log:
[giow] (0) Mention that .localStorage can throw in the case of policy decisions.

Modified: complete.html
===================================================================
--- complete.html	2009-11-25 10:55:42 UTC (rev 4380)
+++ complete.html	2009-11-26 01:37:44 UTC (rev 4381)
@@ -110,7 +110,7 @@
 
   <header class=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
    <hgroup><h1>Web Applications 1.0</h1>
-    <h2 class="no-num no-toc">Draft Standard — 25 November 2009</h2>
+    <h2 class="no-num no-toc">Draft Standard — 26 November 2009</h2>
    </hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
    <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
    <!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -58176,7 +58176,12 @@
   <p>When the <code title=dom-localStorage><a href=#dom-localstorage>localStorage</a></code>
   attribute is accessed, the user agent must run the following steps:</p>
 
-  <ol><li><p>If the <code>Document</code>'s <a href=#effective-script-origin>effective script
+  <ol><li><p>The user agent may raise a <code><a href=#security_err>SECURITY_ERR</a></code>
+   exception instead of returning a <code><a href=#storage-0>Storage</a></code> object if the
+   request violates a policy decision (e.g. if the user agent is
+   configured to not allow the page to persist data).</li>
+
+   <li><p>If the <code>Document</code>'s <a href=#effective-script-origin>effective script
    origin</a> is not the <a href=#same-origin>same origin</a> as the
    <code>Document</code>'s <a href=#origin>origin</a>, then throw a
    <code><a href=#security_err>SECURITY_ERR</a></code> exception and abort these steps.</li>

Modified: source
===================================================================
--- source	2009-11-25 10:55:42 UTC (rev 4380)
+++ source	2009-11-26 01:37:44 UTC (rev 4381)
@@ -65717,6 +65717,11 @@
 
   <ol>
 
+   <li><p>The user agent may raise a <code>SECURITY_ERR</code>
+   exception instead of returning a <code>Storage</code> object if the
+   request violates a policy decision (e.g. if the user agent is
+   configured to not allow the page to persist data).</p></li>
+
    <li><p>If the <code>Document</code>'s <span>effective script
    origin</span> is not the <span>same origin</span> as the
    <code>Document</code>'s <span>origin</span>, then throw a




More information about the Commit-Watchers mailing list