Skip to content
Permalink
Browse files

[giow] (3) Remove the weird stuff around document.domain and localSto…

…rage. It doesn't really do anything anyway.

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=22481
Affected topics: DOM APIs, Security

git-svn-id: http://svn.whatwg.org/webapps@8090 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Jul 26, 2013
1 parent 0c00826 commit 45d8c49264e69e7755063e4cedc4cdc43c209478
Showing with 4 additions and 96 deletions.
  1. +2 −33 complete.html
  2. +2 −33 index
  3. +0 −30 source

<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 25 July 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 26 July 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
<ol>
<li><a href=#the-storage-interface><span class=secno>11.2.1 </span>The <code>Storage</code> interface</a></li>
<li><a href=#the-sessionstorage-attribute><span class=secno>11.2.2 </span>The <code title=dom-sessionStorage>sessionStorage</code> attribute</a></li>
<li><a href=#the-localstorage-attribute><span class=secno>11.2.3 </span>The <code title=dom-localStorage>localStorage</code> attribute</a>
<ol>
<li><a href=#security-localStorage><span class=secno>11.2.3.1 </span>Security</a></ol></li>
<li><a href=#the-localstorage-attribute><span class=secno>11.2.3 </span>The <code title=dom-localStorage>localStorage</code> attribute</a></li>
<li><a href=#the-storage-event><span class=secno>11.2.4 </span>The <code title=event-storage>storage</code> event</a>
<ol>
<li><a href=#event-definition-0><span class=secno>11.2.4.1 </span>Event definition</a></ol></li>
<a href=#obtain-the-storage-mutex>obtain the storage mutex</a>.</p>


<!--ADD-TOPIC:Security-->
<h5 id=security-localStorage><span class=secno>11.2.3.1 </span>Security</h5>

<p>For the purposes of this section, a <code><a href=#storage-0>Storage</a></code> object originally returned by a <code title=dom-localStorage><a href=#dom-localstorage>localStorage</a></code> attribute is a <dfn id=protected-storage-object>protected <code>Storage</code>
object</dfn>.</p>

<p>For the purposes of this section, the <dfn id=original-origin>original origin</dfn> of a <a href=#protected-storage-object>protected
<code>Storage</code> object</a> is the <a href=#origin>origin</a> of the <code><a href=#document>Document</a></code> of the
<code><a href=#window>Window</a></code> object on which the <code title=dom-localStorage><a href=#dom-localstorage>localStorage</a></code>
attribute that returned the <code><a href=#storage-0>Storage</a></code> object was accessed.</p>

<p>User agents must throw a <code><a href=#securityerror>SecurityError</a></code> exception whenever any properties of a
<a href=#protected-storage-object>protected <code>Storage</code> object</a> are accessed when the <a href=#incumbent-script>incumbent
script</a> has an <a href=#effective-script-origin>effective script origin</a> that is not the <a href=#same-origin title="same
origin">same</a> as the <a href=#original-origin>original origin</a> of that <code><a href=#storage-0>Storage</a></code> object.</p>

<p>When the <a href=#incumbent-script>incumbent script</a>'s <a href=#effective-script-origin>effective script origin</a> is different than
a <a href=#protected-storage-object>protected <code>Storage</code> object</a>'s <a href=#original-origin>original origin</a>, the user
agent must act as if any changes to that <code><a href=#storage-0>Storage</a></code> object's properties, getters,
setters, etc, were not present, and as if all the properties of that <code><a href=#storage-0>Storage</a></code> object
had their [[Enumerable]] attribute set to false.</p>

<p class=note>This means <code><a href=#storage-0>Storage</a></code> objects are neutered
when the <code title=dom-document-domain><a href=#dom-document-domain>document.domain</a></code>
attribute is used.</p>
<!--REMOVE-TOPIC:Security-->



<h4 id=the-storage-event><span class=secno>11.2.4 </span>The <code title=event-storage><a href=#event-storage>storage</a></code> event</h4>

<p>The <dfn id=event-storage title=event-storage><code>storage</code></dfn> event is fired on a
35 index

<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 25 July 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 26 July 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
<ol>
<li><a href=#the-storage-interface><span class=secno>11.2.1 </span>The <code>Storage</code> interface</a></li>
<li><a href=#the-sessionstorage-attribute><span class=secno>11.2.2 </span>The <code title=dom-sessionStorage>sessionStorage</code> attribute</a></li>
<li><a href=#the-localstorage-attribute><span class=secno>11.2.3 </span>The <code title=dom-localStorage>localStorage</code> attribute</a>
<ol>
<li><a href=#security-localStorage><span class=secno>11.2.3.1 </span>Security</a></ol></li>
<li><a href=#the-localstorage-attribute><span class=secno>11.2.3 </span>The <code title=dom-localStorage>localStorage</code> attribute</a></li>
<li><a href=#the-storage-event><span class=secno>11.2.4 </span>The <code title=event-storage>storage</code> event</a>
<ol>
<li><a href=#event-definition-0><span class=secno>11.2.4.1 </span>Event definition</a></ol></li>
<a href=#obtain-the-storage-mutex>obtain the storage mutex</a>.</p>


<!--ADD-TOPIC:Security-->
<h5 id=security-localStorage><span class=secno>11.2.3.1 </span>Security</h5>

<p>For the purposes of this section, a <code><a href=#storage-0>Storage</a></code> object originally returned by a <code title=dom-localStorage><a href=#dom-localstorage>localStorage</a></code> attribute is a <dfn id=protected-storage-object>protected <code>Storage</code>
object</dfn>.</p>

<p>For the purposes of this section, the <dfn id=original-origin>original origin</dfn> of a <a href=#protected-storage-object>protected
<code>Storage</code> object</a> is the <a href=#origin>origin</a> of the <code><a href=#document>Document</a></code> of the
<code><a href=#window>Window</a></code> object on which the <code title=dom-localStorage><a href=#dom-localstorage>localStorage</a></code>
attribute that returned the <code><a href=#storage-0>Storage</a></code> object was accessed.</p>

<p>User agents must throw a <code><a href=#securityerror>SecurityError</a></code> exception whenever any properties of a
<a href=#protected-storage-object>protected <code>Storage</code> object</a> are accessed when the <a href=#incumbent-script>incumbent
script</a> has an <a href=#effective-script-origin>effective script origin</a> that is not the <a href=#same-origin title="same
origin">same</a> as the <a href=#original-origin>original origin</a> of that <code><a href=#storage-0>Storage</a></code> object.</p>

<p>When the <a href=#incumbent-script>incumbent script</a>'s <a href=#effective-script-origin>effective script origin</a> is different than
a <a href=#protected-storage-object>protected <code>Storage</code> object</a>'s <a href=#original-origin>original origin</a>, the user
agent must act as if any changes to that <code><a href=#storage-0>Storage</a></code> object's properties, getters,
setters, etc, were not present, and as if all the properties of that <code><a href=#storage-0>Storage</a></code> object
had their [[Enumerable]] attribute set to false.</p>

<p class=note>This means <code><a href=#storage-0>Storage</a></code> objects are neutered
when the <code title=dom-document-domain><a href=#dom-document-domain>document.domain</a></code>
attribute is used.</p>
<!--REMOVE-TOPIC:Security-->



<h4 id=the-storage-event><span class=secno>11.2.4 </span>The <code title=event-storage><a href=#event-storage>storage</a></code> event</h4>

<p>The <dfn id=event-storage title=event-storage><code>storage</code></dfn> event is fired on a
30 source
<span>obtain the storage mutex</span>.</p>


<!--ADD-TOPIC:Security-->
<h6 id="security-localStorage">Security</h6>

<p>For the purposes of this section, a <code>Storage</code> object originally returned by a <code
title="dom-localStorage">localStorage</code> attribute is a <dfn>protected <code>Storage</code>
object</dfn>.</p>

<p>For the purposes of this section, the <dfn>original origin</dfn> of a <span>protected
<code>Storage</code> object</span> is the <span>origin</span> of the <code>Document</code> of the
<code>Window</code> object on which the <code title="dom-localStorage">localStorage</code>
attribute that returned the <code>Storage</code> object was accessed.</p>

<p>User agents must throw a <code>SecurityError</code> exception whenever any properties of a
<span>protected <code>Storage</code> object</span> are accessed when the <span>incumbent
script</span> has an <span>effective script origin</span> that is not the <span title="same
origin">same</span> as the <span>original origin</span> of that <code>Storage</code> object.</p>

<p>When the <span>incumbent script</span>'s <span>effective script origin</span> is different than
a <span>protected <code>Storage</code> object</span>'s <span>original origin</span>, the user
agent must act as if any changes to that <code>Storage</code> object's properties, getters,
setters, etc, were not present, and as if all the properties of that <code>Storage</code> object
had their [[Enumerable]] attribute set to false.</p>

<p class="note">This means <code>Storage</code> objects are neutered
when the <code title="dom-document-domain">document.domain</code>
attribute is used.</p>
<!--REMOVE-TOPIC:Security-->



<h5>The <code title="event-storage">storage</code> event</h5>

<p>The <dfn title="event-storage"><code>storage</code></dfn> event is fired on a

0 comments on commit 45d8c49

Please sign in to comment.
You can’t perform that action at this time.