postmsg; hixie: Update 'connect' events in shared workers to include the port on event.source, as well as event.ports[0], to make the event more intuitive. (whatwg r7114)

postmsg; hixie: Update 'connect' events in shared workers to include the
port on event.source, as well as event.ports[0], to make the event more
intuitive. (whatwg r7114)

http://dev.w3.org/cvsweb/html5/postmsg/Overview.html?r1=1.117&r2=1.118&f=h
http://html5.org/tools/web-apps-tracker?from=7113&to=7114

===================================================================
RCS file: /sources/public/html5/postmsg/Overview.html,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -d -r1.117 -r1.118
--- Overview.html 8 May 2012 19:51:59 -0000 1.117
+++ Overview.html 1 Jun 2012 22:44:16 -0000 1.118
@@ -216,7 +216,7 @@
 
    <h1>HTML5 Web Messaging</h1>
    
-   <h2 class="no-num no-toc" id="editor-s-draft-8-may-2012">Editor's Draft 8 May 2012</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-1-june-2012">Editor's Draft 1 June 2012</h2>
    <dl><dt>Latest Published Version:</dt>
     <dd><a href="http://www.w3.org/TR/webmessaging/">http://www.w3.org/TR/webmessaging/</a></dd>
     <dt>Latest Editor's Draft:</dt>
@@ -350,7 +350,7 @@
   </dl><p>The W3C <a href="http://www.w3.org/2008/webapps/">Web Applications
   Working Group</a> is the W3C working group responsible for this
   specification's progress along the W3C Recommendation track.
-  This specification is the 8 May 2012 Editor's Draft.
+  This specification is the 1 June 2012 Editor's Draft.
   </p>
 
   
@@ -501,7 +501,7 @@
   readonly attribute any <a href="#dom-messageevent-data" title="dom-MessageEvent-data">data</a>;
   readonly attribute DOMString <a href="#dom-messageevent-origin" title="dom-MessageEvent-origin">origin</a>;
   readonly attribute DOMString <a href="#dom-messageevent-lasteventid" title="dom-MessageEvent-lastEventId">lastEventId</a>;
-  readonly attribute <span>WindowProxy</span>? <a href="#dom-messageevent-source" title="dom-MessageEvent-source">source</a>;
+  readonly attribute (<span>WindowProxy</span> or <a href="#messageport">MessagePort</a>)? <a href="#dom-messageevent-source" title="dom-MessageEvent-source">source</a>;
   readonly attribute <a href="#messageport">MessagePort</a>[]? <a href="#dom-messageevent-ports" title="dom-MessageEvent-ports">ports</a>;
 };
 
@@ -544,7 +544,9 @@
    <dd>
 
     <p>Returns the <code>WindowProxy</code> of the source window, for
-    <a href="#web-messaging">cross-document messaging</a>.</p>
+    <a href="#web-messaging">cross-document messaging</a>, and the
+    <code><a href="#messageport">MessagePort</a></code> being attached, in the <code title="event-connect">connect</code> event fired at
+    <code>SharedWorkerGlobalScope</code> objects.</p>
 
    </dd>
 
@@ -585,7 +587,9 @@
   created, this attribute must be initialized to null. It represents,
   in <a href="#web-messaging">cross-document messaging</a>, the
   <code>WindowProxy</code> of the <span>browsing context</span> of the
-  <code>Window</code> object from which the message came.</p>
+  <code>Window</code> object from which the message came; and in the
+  <code title="event-connect">connect</code> events used by <span title="SharedWorkerGlobalScope">shared workers</span>, the newly
+  connecting <code><a href="#messageport">MessagePort</a></code>.</p>
 
   <p>The <dfn id="dom-messageevent-ports" title="dom-MessageEvent-ports"><code>ports</code></dfn>
   attribute must return the value it was initialized to. When the

Received on Friday, 1 June 2012 22:44:29 UTC