[html5] r1507 - /

whatwg at whatwg.org whatwg at whatwg.org
Mon Apr 28 20:07:35 PDT 2008


Author: ianh
Date: 2008-04-28 20:07:35 -0700 (Mon, 28 Apr 2008)
New Revision: 1507

Modified:
   index
   source
Log:
[] (0) Define the origin for about:blank documents.

Modified: index
===================================================================
--- index	2008-04-29 01:42:04 UTC (rev 1506)
+++ index	2008-04-29 03:07:35 UTC (rev 1507)
@@ -26540,6 +26540,38 @@
    immediately navigated, then that initial navigation will have <a
    href="#replacement">replacement enabled</a>.
 
+  <p id=about-blank-origin>The <a href="#origin0">origin</a> of the
+   <code>about:blank</code> <code>Document</code> is set when the
+   <code>Document</code> is created, in a manner dependent on whether the <a
+   href="#browsing0">browsing context</a> created is a <a
+   href="#nested0">nested browsing context</a>, as follows:
+
+  <dl class=switch>
+   <dt>If the new <a href="#browsing0">browsing context</a> is a <a
+    href="#nested0">nested browsing context</a>
+
+   <dd>The <a href="#origin0">origin</a> of the <code>about:blank</code>
+    <code>Document</code> is the <a href="#origin0">origin</a> of the <a
+    href="#active">active document</a> of the new <a
+    href="#browsing0">browsing context</a>'s <a href="#parent">parent
+    browsing context</a> at the time of its creation.
+
+   <dt>If the new <a href="#browsing0">browsing context</a> is an <a
+    href="#auxiliary0">auxiliary browsing context</a>
+
+   <dd>The <a href="#origin0">origin</a> of the <code>about:blank</code>
+    <code>Document</code> is the <a href="#origin0">origin</a> of the <a
+    href="#active">active document</a> of the new <a
+    href="#browsing0">browsing context</a>'s <a href="#opener">opener
+    browsing context</a> at the time of its creation.
+
+   <dt>Otherwise
+
+   <dd>The <a href="#origin0">origin</a> of the <code>about:blank</code>
+    <code>Document</code> is a globally unique identifier assigned when the
+    new <a href="#browsing0">browsing context</a> is created.
+  </dl>
+
   <h4 id=nested><span class=secno>4.1.1 </span>Nested browsing contexts</h4>
 
   <p>Certain elements (for example, <code><a href="#iframe">iframe</a></code>
@@ -27189,13 +27221,16 @@
      <dd>The origin is the origin of the <code>Document</code> or script in
       which the <code>data:</code> URI was found.
 
-     <dt>If a <code>Document</code> or image has a URI whose scheme is
-      "<code>about:blank</code>"
+     <dt>If a <code>Document</code> has the URI "<code>about:blank</code>"
 
-     <dd class=big-issue>...
+     <dd>The origin of the <code>Document</code> is <a
+      href="#about-blank-origin">the origin it was assigned when its browsing
+      context was created</a>.
 
      <dt>If a <code>Document</code> or image was obtained in some other
-      manner (e.g. a <code>data:</code> URI typed in by the user)
+      manner (e.g. a <code>data:</code> URI typed in by the user, a
+      <code>Document</code> created using the <code
+      title="">createDocument()</code> API)
 
      <dd>The origin is a globally unique identifier assigned when the
       <code>Document</code> or image is created.

Modified: source
===================================================================
--- source	2008-04-29 01:42:04 UTC (rev 1506)
+++ source	2008-04-29 03:07:35 UTC (rev 1507)
@@ -24213,7 +24213,43 @@
   immediately navigated, then that initial navigation will have
   <span>replacement enabled</span>.</p>
 
+  <p id="about-blank-origin">The <span>origin</span> of the
+  <code>about:blank</code> <code>Document</code> is set when the
+  <code>Document</code> is created, in a manner dependent on whether
+  the <span>browsing context</span> created is a <span>nested browsing
+  context</span>, as follows:
 
+  <dl class="switch">
+
+   <dt>If the new <span>browsing context</span> is a <span>nested
+   browsing context</span></dt>
+
+   <dd>The <span>origin</span> of the <code>about:blank</code>
+   <code>Document</code> is the <span>origin</span> of the
+   <span>active document</span> of the new <span>browsing
+   context</span>'s <span>parent browsing context</span> at the time
+   of its creation.</dd>
+
+
+   <dt>If the new <span>browsing context</span> is an <span>auxiliary
+   browsing context</span></dt>
+
+   <dd>The <span>origin</span> of the <code>about:blank</code>
+   <code>Document</code> is the <span>origin</span> of the
+   <span>active document</span> of the new <span>browsing
+   context</span>'s <span>opener browsing context</span> at the time
+   of its creation.</dd>
+
+
+   <dt>Otherwise</dt>
+
+   <dd>The <span>origin</span> of the <code>about:blank</code>
+   <code>Document</code> is a globally unique identifier assigned when
+   the new <span>browsing context</span> is created.</dd>
+
+  </dl>
+
+
   <h4>Nested browsing contexts</h4>
 
   <p>Certain elements (for example, <code>iframe</code> elements) can
@@ -24901,15 +24937,18 @@
      script in which the <code>data:</code> URI was found.</dd>
 
 
-     <dt>If a <code>Document</code> or image has a URI whose scheme is
+     <dt>If a <code>Document</code> has the URI
      "<code>about:blank</code>"</dt>
 
-     <dd class="big-issue">...</dd>
+     <dd>The origin of the <code>Document</code> is <a
+     href="#about-blank-origin">the origin it was assigned when its
+     browsing context was created</a>.</dd>
 
 
      <dt>If a <code>Document</code> or image was obtained in some
-     other manner (e.g. a <code>data:</code> URI typed in by the
-     user)</dt>
+     other manner (e.g. a <code>data:</code> URI typed in by the user,
+     a <code>Document</code> created using the <code
+     title="">createDocument()</code> API)</dt>
 
      <dd>The origin is a globally unique identifier assigned when the
      <code>Document</code> or image is created.</dd>




More information about the Commit-Watchers mailing list