[html5] r6434 - [giow] (1) Don't bother protecting structured cloning from a getter with infinit [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Aug 12 14:45:50 PDT 2011


Author: ianh
Date: 2011-08-12 14:45:49 -0700 (Fri, 12 Aug 2011)
New Revision: 6434

Modified:
   complete.html
   index
   source
Log:
[giow] (1) Don't bother protecting structured cloning from a getter with infinite regression, since we can't protect it from a non-terminating getter anyway. Reverts part of r6185.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12101

Modified: complete.html
===================================================================
--- complete.html	2011-08-12 21:39:11 UTC (rev 6433)
+++ complete.html	2011-08-12 21:45:49 UTC (rev 6434)
@@ -8822,18 +8822,14 @@
    <li><p>Let <var title="">output</var> be the value resulting from
    calling the <a href=#internal-structured-cloning-algorithm>internal structured cloning algorithm</a> with
    <var title="">input</var> as the "<var title="">input</var>"
-   argument, <var title="">memory</var> as the "<var title="">memory</var>" argument, and zero as the "<var title="">depth</var>" argument.</li>
+   argument, and <var title="">memory</var> as the "<var title="">memory</var>" argument.</li>
 
    <li><p>Return <var title="">output</var>.</li>
 
   </ol><p>The <dfn id=internal-structured-cloning-algorithm>internal structured cloning algorithm</dfn> is always
-  called with three arguments, <var title="">input</var>, <var title="">memory</var>, and <var title="">depth</var>, and its
-  behavior is as follows:</p>
+  called with two arguments, <var title="">input</var> and <var title="">memory</var>, and its behavior is as follows:</p>
 
-  <ol><li><p>If <var title="">depth</var> is greater than 1, return null
-   and abort these steps.</li>
-
-   <li><p>If <var title="">input</var> is the source object of a pair
+  <ol><li><p>If <var title="">input</var> is the source object of a pair
    of objects in <var title="">memory</var>, then return the
    destination object in that pair of objects and abort these
    steps.</li>
@@ -8938,11 +8934,8 @@
     object, then, for each enumerable property in <var title="">input</var>, add a new property to <var title="">output</var> having the same name, and having a value
     created from invoking the <a href=#internal-structured-cloning-algorithm>internal structured cloning
     algorithm</a> recursively with the value of the property as the
-    "<var title="">input</var>" argument, <var title="">memory</var>
-    as the "<var title="">memory</var>" argument, and <span title=""><var title="">depth</var>+<var title="">newDepth</var></span> as the "<var title="">depth</var>"
-    argument, where <var title="">newDepth</var> is zero except if
-    obtaining the value of the property involved executing script, in
-    which case it is one (1). The order of the properties in the <var title="">input</var> and <var title="">output</var> objects must
+    "<var title="">input</var>" argument and <var title="">memory</var> as the "<var title="">memory</var>"
+    argument. The order of the properties in the <var title="">input</var> and <var title="">output</var> objects must
     be the same, and any properties that involve running script must
     be processed in that same order. If obtaining the value of the
     property involved executing script, and that script threw an
@@ -37014,7 +37007,7 @@
   attribute's allowed keywords correspond to alignment points in the
   font:</p>
 
-  <p><img alt="The top of the em square is roughly at the top of the glyphs in a font, the hanging baseline is where some glyphs like आ are anchored, the middle is half-way between the top of the em square and the bottom of the em square, the alphabetic baseline is where characters like Á, ÿ, f, and " height=300 src=http://images.whatwg.org/baselines.png width=738>x03A9; are anchored, the ideographic baseline is where glyphs like 私 and 達 are anchored, and the bottom of the em square is roughly at the bottom of the glyphs in a font. The top and bottom of the bounding box can be far from these baselines, due to glyphs extending far outside the em square."></p>
+  <p><img alt="The top of the em square is roughly at the top of the glyphs in a font, the hanging baseline is where some glyphs like आ are anchored, the middle is half-way between the top of the em square and the bottom of the em square, the alphabetic baseline is where characters like Á, ÿ, f, and Ω are anchored, the ideographic baseline is where glyphs like 私 and 達 are anchored, and the bottom of the em square is roughly at the bottom of the glyphs in a font. The top and bottom of the bounding box can be far from these baselines, due to glyphs extending far outside the em square." height=300 src=http://images.whatwg.org/baselines.png width=738></p>
 
   <p>The keywords map to these alignment points as follows:</p>
 

Modified: index
===================================================================
--- index	2011-08-12 21:39:11 UTC (rev 6433)
+++ index	2011-08-12 21:45:49 UTC (rev 6434)
@@ -8686,18 +8686,14 @@
    <li><p>Let <var title="">output</var> be the value resulting from
    calling the <a href=#internal-structured-cloning-algorithm>internal structured cloning algorithm</a> with
    <var title="">input</var> as the "<var title="">input</var>"
-   argument, <var title="">memory</var> as the "<var title="">memory</var>" argument, and zero as the "<var title="">depth</var>" argument.</li>
+   argument, and <var title="">memory</var> as the "<var title="">memory</var>" argument.</li>
 
    <li><p>Return <var title="">output</var>.</li>
 
   </ol><p>The <dfn id=internal-structured-cloning-algorithm>internal structured cloning algorithm</dfn> is always
-  called with three arguments, <var title="">input</var>, <var title="">memory</var>, and <var title="">depth</var>, and its
-  behavior is as follows:</p>
+  called with two arguments, <var title="">input</var> and <var title="">memory</var>, and its behavior is as follows:</p>
 
-  <ol><li><p>If <var title="">depth</var> is greater than 1, return null
-   and abort these steps.</li>
-
-   <li><p>If <var title="">input</var> is the source object of a pair
+  <ol><li><p>If <var title="">input</var> is the source object of a pair
    of objects in <var title="">memory</var>, then return the
    destination object in that pair of objects and abort these
    steps.</li>
@@ -8802,11 +8798,8 @@
     object, then, for each enumerable property in <var title="">input</var>, add a new property to <var title="">output</var> having the same name, and having a value
     created from invoking the <a href=#internal-structured-cloning-algorithm>internal structured cloning
     algorithm</a> recursively with the value of the property as the
-    "<var title="">input</var>" argument, <var title="">memory</var>
-    as the "<var title="">memory</var>" argument, and <span title=""><var title="">depth</var>+<var title="">newDepth</var></span> as the "<var title="">depth</var>"
-    argument, where <var title="">newDepth</var> is zero except if
-    obtaining the value of the property involved executing script, in
-    which case it is one (1). The order of the properties in the <var title="">input</var> and <var title="">output</var> objects must
+    "<var title="">input</var>" argument and <var title="">memory</var> as the "<var title="">memory</var>"
+    argument. The order of the properties in the <var title="">input</var> and <var title="">output</var> objects must
     be the same, and any properties that involve running script must
     be processed in that same order. If obtaining the value of the
     property involved executing script, and that script threw an

Modified: source
===================================================================
--- source	2011-08-12 21:39:11 UTC (rev 6433)
+++ source	2011-08-12 21:45:49 UTC (rev 6434)
@@ -8772,24 +8772,19 @@
    <li><p>Let <var title="">output</var> be the value resulting from
    calling the <span>internal structured cloning algorithm</span> with
    <var title="">input</var> as the "<var title="">input</var>"
-   argument, <var title="">memory</var> as the "<var
-   title="">memory</var>" argument, and zero as the "<var
-   title="">depth</var>" argument.</p></li>
+   argument, and <var title="">memory</var> as the "<var
+   title="">memory</var>" argument.</p></li>
 
    <li><p>Return <var title="">output</var>.</p></li>
 
   </ol>
 
   <p>The <dfn>internal structured cloning algorithm</dfn> is always
-  called with three arguments, <var title="">input</var>, <var
-  title="">memory</var>, and <var title="">depth</var>, and its
-  behavior is as follows:</p>
+  called with two arguments, <var title="">input</var> and <var
+  title="">memory</var>, and its behavior is as follows:</p>
 
   <ol>
 
-   <li><p>If <var title="">depth</var> is greater than 1, return null
-   and abort these steps.</p></li>
-
    <li><p>If <var title="">input</var> is the source object of a pair
    of objects in <var title="">memory</var>, then return the
    destination object in that pair of objects and abort these
@@ -8904,13 +8899,9 @@
     title="">output</var> having the same name, and having a value
     created from invoking the <span>internal structured cloning
     algorithm</span> recursively with the value of the property as the
-    "<var title="">input</var>" argument, <var title="">memory</var>
-    as the "<var title="">memory</var>" argument, and <span
-    title=""><var title="">depth</var>+<var
-    title="">newDepth</var></span> as the "<var title="">depth</var>"
-    argument, where <var title="">newDepth</var> is zero except if
-    obtaining the value of the property involved executing script, in
-    which case it is one (1). The order of the properties in the <var
+    "<var title="">input</var>" argument and <var
+    title="">memory</var> as the "<var title="">memory</var>"
+    argument. The order of the properties in the <var
     title="">input</var> and <var title="">output</var> objects must
     be the same, and any properties that involve running script must
     be processed in that same order. If obtaining the value of the




More information about the Commit-Watchers mailing list