[html5] r1875 - [] (0) Define what happens when you call the postMessage() method with a null port.
whatwg at whatwg.org
whatwg at whatwg.org
Tue Jul 15 03:40:03 PDT 2008
Author: ianh
Date: 2008-07-15 03:40:02 -0700 (Tue, 15 Jul 2008)
New Revision: 1875
Modified:
index
source
Log:
[] (0) Define what happens when you call the postMessage() method with a null port.
Modified: index
===================================================================
--- index 2008-07-15 10:36:28 UTC (rev 1874)
+++ index 2008-07-15 10:40:02 UTC (rev 1875)
@@ -42382,6 +42382,12 @@
of steps.</p>
<li> <!-- NEW STEP -->
+ <p>If the <var title="">messagePort</var> argument is null, then act as
+ if the method had just been <a href="#postmessage"
+ title=dom-window-postMessage-2>called with two arguments</a>, <var
+ title="">message</var> and <var title="">targetOrigin</var>.</p>
+
+ <li> <!-- NEW STEP -->
<p>Try to obtain a <var title="">new port</var> by <a href="#clone"
title="clone a port">cloning</a> the <var title="">messagePort</var>
argument with the <code><a href="#window">Window</a></code> object on
@@ -42448,8 +42454,8 @@
<!-- XXX apply any body/window dispatch decisions here -->
</ol>
- <p class=note>These steps, with the exception of the second step and the
- penultimate step, are identical to those in the previous section.</p>
+ <p class=note>These steps, with the exception of the second and third steps
+ and the penultimate step, are identical to those in the previous section.</p>
<!-- XXX merge this section and the previous section when
implementations have shipped postMessage(). Anne asked that these
sections be kept separate so that implementors can avoid getting
Modified: source
===================================================================
--- source 2008-07-15 10:36:28 UTC (rev 1874)
+++ source 2008-07-15 10:40:02 UTC (rev 1875)
@@ -40050,6 +40050,16 @@
<li> <!-- NEW STEP -->
+ <p>If the <var title="">messagePort</var> argument is null, then
+ act as if the method had just been <span
+ title="dom-window-postMessage-2">called with two arguments</span>,
+ <var title="">message</var> and <var
+ title="">targetOrigin</var>.</p>
+
+ </li>
+
+ <li> <!-- NEW STEP -->
+
<p>Try to obtain a <var title="">new port</var> by <span
title="clone a port">cloning</span> the <var
title="">messagePort</var> argument with the <code>Window</code>
@@ -40131,9 +40141,9 @@
</ol>
- <p class="note">These steps, with the exception of the second step
- and the penultimate step, are identical to those in the previous
- section.</p>
+ <p class="note">These steps, with the exception of the second and
+ third steps and the penultimate step, are identical to those in the
+ previous section.</p>
<!-- XXX merge this section and the previous section when
implementations have shipped postMessage(). Anne asked that these
More information about the Commit-Watchers
mailing list