Skip to content

Commit

Permalink
[g] (2) Clarify definitions of what to do with window.open() and simi…
Browse files Browse the repository at this point in the history
…lar cases when it comes to sessionStorage.

git-svn-id: http://svn.whatwg.org/webapps@1141 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 11, 2007
1 parent 7d1384b commit 890eea5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 deletions.
16 changes: 6 additions & 10 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -29786,16 +29786,12 @@ interface <dfn id=storage0>Storage</dfn> {
created by a script in an existing <a href="#browsing0">browsing
context</a>, or by the user following a link in an existing browsing
context, or in some other way related to a specific <code><a
href="#htmldocument">HTMLDocument</a></code>, then, if the new context's
first <code><a href="#htmldocument">HTMLDocument</a></code> has the same
<a href="#origin0">origin</a> as the <code><a
href="#htmldocument">HTMLDocument</a></code> from which the new context
was created, the new browsing context must start with a single session
storage area. That storage area must be a copy of that origin's session
storage area in the original top-level browsing context, which from that
point on must be considered separate, with the two storage areas not
affecting each other in any way.</p>
<!-- XXX define the case for window.open() -->
href="#htmldocument">HTMLDocument</a></code>, then the session storage
area of the origin of that <code><a
href="#htmldocument">HTMLDocument</a></code> must be copied into the new
browsing context when it is created. From that point on, however, the two
session storage areas must be considered separate, not affecting each
other in any way.

<p id=sessionStorageEvent>When the <code title=dom-Storage-setItem><a
href="#setitem">setItem()</a></code> method is called on a <code><a
Expand Down
16 changes: 5 additions & 11 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -27326,17 +27326,11 @@ interface <dfn>Storage</dfn> {
<p>When a new <span>top-level browsing context</span> is created by
a script in an existing <span>browsing context</span>, or by the
user following a link in an existing browsing context, or in some
other way related to a specific <code>HTMLDocument</code>, then, if
the new context's first <code>HTMLDocument</code> has the same
<span>origin</span> as the <code>HTMLDocument</code> from which the
new context was created, the new browsing context must start with a
single session storage area. That storage area must be a copy of
that origin's session storage area in the original top-level
browsing context, which from that point on must be considered
separate, with the two storage areas not affecting each other in any
way.</p>

<!-- XXX define the case for window.open() -->
other way related to a specific <code>HTMLDocument</code>, then the
session storage area of the origin of that <code>HTMLDocument</code>
must be copied into the new browsing context when it is created.
From that point on, however, the two session storage areas must be
considered separate, not affecting each other in any way.</p>

<p id="sessionStorageEvent">When the <code
title="dom-Storage-setItem">setItem()</code> method is called on a
Expand Down

0 comments on commit 890eea5

Please sign in to comment.