Skip to content

Commit

Permalink
[] (0) Define what happens when you call the postMessage() method wit…
Browse files Browse the repository at this point in the history
…h a null port.

git-svn-id: http://svn.whatwg.org/webapps@1875 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 15, 2008
1 parent cc84911 commit b9af6ec
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
10 changes: 8 additions & 2 deletions index
Expand Up @@ -42381,6 +42381,12 @@ function receiver(e) {
then throw a <code>SYNTAX_ERR</code> exception and abort the overall set
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>
Expand Down Expand Up @@ -42448,8 +42454,8 @@ function receiver(e) {
<!-- 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
Expand Down
16 changes: 13 additions & 3 deletions source
Expand Up @@ -40048,6 +40048,16 @@ function receiver(e) {

</li>

<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
Expand Down Expand Up @@ -40131,9 +40141,9 @@ function receiver(e) {

</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
Expand Down

0 comments on commit b9af6ec

Please sign in to comment.