Skip to content

Commit

Permalink
[giow] (1) Revert last checkin. My testing was bogus.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13967

git-svn-id: http://svn.whatwg.org/webapps@6691 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 17, 2011
1 parent 1e588ea commit 3929b4c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 96 deletions.
36 changes: 4 additions & 32 deletions complete.html
Expand Up @@ -62527,7 +62527,6 @@ <h3 id=the-window-object><span class=secno>6.2 </span>The <code><a href=#window>

<!--POSTMSG--> // <a href=#web-messaging>cross-document messaging</a>
void <a href=#dom-window-postmessage title=dom-window-postMessage>postMessage</a>(any message, DOMString targetOrigin, optional sequence&lt;<a href=#transferable>Transferable</a>&gt; transfer);
void <a href=#dom-window-postmessage title=dom-window-postMessage>postMessage</a>(any message, sequence&lt;<a href=#transferable>Transferable</a>&gt; transfer, DOMString targetOrigin);
<!--POSTMSG-->
// <a href=#event-handler-idl-attributes>event handler IDL attributes</a>
[TreatNonCallableAsNull] attribute <a href=#function>Function</a>? <a href=#handler-onabort title=handler-onabort>onabort</a>;
Expand Down Expand Up @@ -81707,7 +81706,6 @@ <h5 id=user-agents><span class=secno>11.4.2.2 </span>User agents</h5>
<h4 id=posting-messages><span class=secno>11.4.3 </span>Posting messages</h4>

<dl class=domintro><dt><var title="">window</var> . <code title=dom-window-postMessage><a href=#dom-window-postmessage>postMessage</a></code>(<var title="">message</var>, <var title="">targetOrigin</var> [, <var title="">transfer</var> ])</dt>
<dt><var title="">window</var> . <code title=dom-window-postMessage><a href=#dom-window-postmessage>postMessage</a></code>(<var title="">message</var> [, <var title="">transfer</var> ], <var title="">targetOrigin</var>)</dt>

<dd>

Expand All @@ -81724,10 +81722,6 @@ <h4 id=posting-messages><span class=secno>11.4.3 </span>Posting messages</h4>
<p>Throws a <code><a href=#datacloneerror>DataCloneError</a></code> if <var title="">transfer</var> array contains duplicate objects or if
<var title="">message</var> could not be cloned.</p>

<p>The second and third arguments can be given in either order,
and the <var title="">transfer</var> array can be omitted
entirely.</p>

</dd>

</dl><p class=note>When posting a message to a <code><a href=#window>Window</a></code> of a
Expand All @@ -81744,33 +81738,12 @@ <h4 id=posting-messages><span class=secno>11.4.3 </span>Posting messages</h4>

<div class=impl>

<p>When a script invokes the <dfn id=dom-window-postmessage title=dom-window-postMessage><code>postMessage()</code></dfn>
method (with two or three arguments) on a <code><a href=#window>Window</a></code>
object, the user agent must follow these steps:</p>
<p>When a script invokes the <dfn id=dom-window-postmessage title=dom-window-postMessage><code>postMessage(<var title="">message</var>, <var title="">targetOrigin</var>, <var title="">transfer</var>)</code></dfn> method (with two or three
arguments) on a <code><a href=#window>Window</a></code> object, the user agent must
follow these steps:</p>

<ol><!-- a lot of this is similar or identical to port.postMessage --><li>

<p>Let <var title="">message</var> be the first argument.</p>

</li>

<li>

<p>Let <var title="">targetOrigin</var> be the second argument if
the second argument is a string, or else the third argument.</p>

</li>

<li>

<p>Let <var title="">transfer</var> be the second argument if the
second argument is an array of <code><a href=#transferable>Transferable</a></code> objects,
or else the third argument.</p>

</li>

<li>

<p>If the value of the <var title="">targetOrigin</var> argument
is neither a single U+002A ASTERISK character (*), a single U+002F
SOLIDUS character (/), nor an <a href=#absolute-url>absolute URL</a>, then
Expand All @@ -81794,8 +81767,7 @@ <h4 id=posting-messages><span class=secno>11.4.3 </span>Posting messages</h4>

<li>

<p>If the method was invoked with three arguments, run these
substeps:</p>
<p>If the method was invoked with a third argument <var title="">transfer</var>, run these substeps:</p>

<ol><li>

Expand Down
36 changes: 4 additions & 32 deletions index
Expand Up @@ -62527,7 +62527,6 @@ interface <dfn id=window>Window</dfn> : <a href=#eventtarget>EventTarget</a> {

<!--POSTMSG--> // <a href=#web-messaging>cross-document messaging</a>
void <a href=#dom-window-postmessage title=dom-window-postMessage>postMessage</a>(any message, DOMString targetOrigin, optional sequence&lt;<a href=#transferable>Transferable</a>&gt; transfer);
void <a href=#dom-window-postmessage title=dom-window-postMessage>postMessage</a>(any message, sequence&lt;<a href=#transferable>Transferable</a>&gt; transfer, DOMString targetOrigin);
<!--POSTMSG-->
// <a href=#event-handler-idl-attributes>event handler IDL attributes</a>
[TreatNonCallableAsNull] attribute <a href=#function>Function</a>? <a href=#handler-onabort title=handler-onabort>onabort</a>;
Expand Down Expand Up @@ -81707,7 +81706,6 @@ function receiver(e) {
<h4 id=posting-messages><span class=secno>11.4.3 </span>Posting messages</h4>

<dl class=domintro><dt><var title="">window</var> . <code title=dom-window-postMessage><a href=#dom-window-postmessage>postMessage</a></code>(<var title="">message</var>, <var title="">targetOrigin</var> [, <var title="">transfer</var> ])</dt>
<dt><var title="">window</var> . <code title=dom-window-postMessage><a href=#dom-window-postmessage>postMessage</a></code>(<var title="">message</var> [, <var title="">transfer</var> ], <var title="">targetOrigin</var>)</dt>

<dd>

Expand All @@ -81724,10 +81722,6 @@ function receiver(e) {
<p>Throws a <code><a href=#datacloneerror>DataCloneError</a></code> if <var title="">transfer</var> array contains duplicate objects or if
<var title="">message</var> could not be cloned.</p>

<p>The second and third arguments can be given in either order,
and the <var title="">transfer</var> array can be omitted
entirely.</p>

</dd>

</dl><p class=note>When posting a message to a <code><a href=#window>Window</a></code> of a
Expand All @@ -81744,33 +81738,12 @@ function receiver(e) {

<div class=impl>

<p>When a script invokes the <dfn id=dom-window-postmessage title=dom-window-postMessage><code>postMessage()</code></dfn>
method (with two or three arguments) on a <code><a href=#window>Window</a></code>
object, the user agent must follow these steps:</p>
<p>When a script invokes the <dfn id=dom-window-postmessage title=dom-window-postMessage><code>postMessage(<var title="">message</var>, <var title="">targetOrigin</var>, <var title="">transfer</var>)</code></dfn> method (with two or three
arguments) on a <code><a href=#window>Window</a></code> object, the user agent must
follow these steps:</p>

<ol><!-- a lot of this is similar or identical to port.postMessage --><li>

<p>Let <var title="">message</var> be the first argument.</p>

</li>

<li>

<p>Let <var title="">targetOrigin</var> be the second argument if
the second argument is a string, or else the third argument.</p>

</li>

<li>

<p>Let <var title="">transfer</var> be the second argument if the
second argument is an array of <code><a href=#transferable>Transferable</a></code> objects,
or else the third argument.</p>

</li>

<li>

<p>If the value of the <var title="">targetOrigin</var> argument
is neither a single U+002A ASTERISK character (*), a single U+002F
SOLIDUS character (/), nor an <a href=#absolute-url>absolute URL</a>, then
Expand All @@ -81794,8 +81767,7 @@ function receiver(e) {

<li>

<p>If the method was invoked with three arguments, run these
substeps:</p>
<p>If the method was invoked with a third argument <var title="">transfer</var>, run these substeps:</p>

<ol><li>

Expand Down
39 changes: 7 additions & 32 deletions source
Expand Up @@ -70997,7 +70997,6 @@ interface <dfn>Window</dfn> : <span>EventTarget</span> {

<!--END w3c-html--><!--POSTMSG--> // <span>cross-document messaging</span>
void <span title="dom-window-postMessage">postMessage</span>(any message, DOMString targetOrigin, optional sequence&lt;<span>Transferable</span>&gt; transfer);
void <span title="dom-window-postMessage">postMessage</span>(any message, sequence&lt;<span>Transferable</span>&gt; transfer, DOMString targetOrigin);
<!--START w3c-html--><!--POSTMSG-->
// <span>event handler IDL attributes</span>
[TreatNonCallableAsNull] attribute <span>Function</span>? <span title="handler-onabort">onabort</span>;
Expand Down Expand Up @@ -92581,7 +92580,6 @@ function receiver(e) {
<dl class="domintro">

<dt><var title="">window</var> . <code title="dom-window-postMessage">postMessage</code>(<var title="">message</var>, <var title="">targetOrigin</var> [, <var title="">transfer</var> ])</dt>
<dt><var title="">window</var> . <code title="dom-window-postMessage">postMessage</code>(<var title="">message</var> [, <var title="">transfer</var> ], <var title="">targetOrigin</var>)</dt>

<dd>

Expand All @@ -92601,10 +92599,6 @@ function receiver(e) {
title="">transfer</var> array contains duplicate objects or if
<var title="">message</var> could not be cloned.</p>

<p>The second and third arguments can be given in either order,
and the <var title="">transfer</var> array can be omitted
entirely.</p>

</dd>

</dl>
Expand All @@ -92624,33 +92618,14 @@ function receiver(e) {
<div class="impl">

<p>When a script invokes the <dfn
title="dom-window-postMessage"><code>postMessage()</code></dfn>
method (with two or three arguments) on a <code>Window</code>
object, the user agent must follow these steps:</p>
title="dom-window-postMessage"><code>postMessage(<var
title="">message</var>, <var title="">targetOrigin</var>, <var
title="">transfer</var>)</code></dfn> method (with two or three
arguments) on a <code>Window</code> object, the user agent must
follow these steps:</p>

<ol> <!-- a lot of this is similar or identical to port.postMessage -->

<li>

<p>Let <var title="">message</var> be the first argument.</p>

</li>

<li>

<p>Let <var title="">targetOrigin</var> be the second argument if
the second argument is a string, or else the third argument.</p>

</li>

<li>

<p>Let <var title="">transfer</var> be the second argument if the
second argument is an array of <code>Transferable</code> objects,
or else the third argument.</p>

</li>

<li>

<p>If the value of the <var title="">targetOrigin</var> argument
Expand All @@ -92676,8 +92651,8 @@ function receiver(e) {

<li>

<p>If the method was invoked with three arguments, run these
substeps:</p>
<p>If the method was invoked with a third argument <var
title="">transfer</var>, run these substeps:</p>

<ol>

Expand Down

0 comments on commit 3929b4c

Please sign in to comment.