spec/Overview.html 1.1208 2020 Make MessagePort objects not be owned by

Make MessagePort objects not be owned by Windows necessarily, and remove
ownerWindow. (whatwg r2020)

postMessage()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1208.html#postmessage1
deactivate a port
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1208.html#deactivate
MessageChannel()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1208.html#messagechannel0
create a new MessagePort object
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1208.html#create
active
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1208.html#active0
7.5.3 Message ports
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1208.html#message0
MessagePort
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1208.html#messageport0
clone a port
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1208.html#clone
7.5.3.1. Ports and browsing contexts
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1208.html#ports

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1207&r2=1.1208&f=h
http://html5.org/tools/web-apps-tracker?from=2019&to=2020

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1207
retrieving revision 1.1208
diff -u -d -r1.1207 -r1.1208
--- Overview.html 5 Aug 2008 21:52:01 -0000 1.1207
+++ Overview.html 6 Aug 2008 00:25:52 -0000 1.1208
@@ -27,7 +27,7 @@
     for HTML and XHTML</h2>
 
    <h2 class="no-num no-toc" id=editors0><!-- "W3C Working Draft" -->
-    Editor's Draft <!--ZZZ--> 5 August 2008</h2>
+    Editor's Draft <!--ZZZ--> 6 August 2008</h2>
 
    <dl><!-- ZZZ: update the month/day
     <dt>This Version:</dt>
@@ -199,7 +199,7 @@
 
   <p>The W3C <a href="http://www.w3.org/html/wg/">HTML Working Group</a> is
    the W3C working group responsible for this specification's progress along
-   the W3C Recommendation track. <!--ZZZ:--> This specification is the 5
+   the W3C Recommendation track. <!--ZZZ:--> This specification is the 6
    August 2008 <!--ZZZ "Working Draft"-->Editor's Draft. <!--:ZZZ--></p>
   <!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST -->
   <!-- relationship to other work (required) -->
@@ -43834,12 +43834,12 @@
   <ol>
    <li>
     <p><a href="#create">Create a new <code>MessagePort</code> object</a>
-     owned by the <a href="#script3">script browsing context</a>, and let
+     owned by the <a href="#script2">script execution context</a>, and let
      <var title="">port1</var> be that object.
 
    <li>
     <p><a href="#create">Create a new <code>MessagePort</code> object</a>
-     owned by the <a href="#script3">script browsing context</a>, and let
+     owned by the <a href="#script2">script execution context</a>, and let
      <var title="">port2</var> be that object.
 
    <li>
@@ -43880,7 +43880,6 @@
    received by the other port, and vice versa.
 
   <pre class=idl>interface <dfn id=messageport0>MessagePort</dfn> {
-  readonly attribute <a href="#window">Window</a> <a href="#ownerwindow" title=dom-MessagePort-ownerWindow>ownerWindow</a>;
   readonly attribute boolean <a href="#active0" title=dom-MessagePort-active>active</a>;
   boolean <a href="#postmessage1" title=dom-MessagePort-postMessage>postMessage</a>(in DOMString message);
   boolean <a href="#postmessage1" title=dom-MessagePort-postMessage>postMessage</a>(in DOMString message, in <a href="#messageport0">MessagePort</a> messagePort);
@@ -43894,9 +43893,9 @@
 };</pre>
 
   <p>When the user agent is to <dfn id=create>create a new
-   <code>MessagePort</code> object</dfn> owned by a <code><a
-   href="#window">Window</a></code> object <var title="">owner</var>, it must
-   run the following steps:
+   <code>MessagePort</code> object</dfn> owned by a <a href="#script2">script
+   execution context</a> object <var title="">owner</var>, it must run the
+   following steps:
 
   <ol>
    <li>
@@ -43904,9 +43903,7 @@
      object, and let <var title="">port</var> be that object.
 
    <li>
-    <p>Set the <code title=dom-MessagePort-ownerWindow><a
-     href="#ownerwindow">ownerWindow</a></code> attribute of <var
-     title="">port</var> to <var title="">owner</var>.
+    <p>Let <var title="">port</var>'s owner be <var title="">owner</var>.
 
    <li>
     <p>Set the <code title=dom-MessagePort-active><a
@@ -44011,11 +44008,6 @@
 
   <hr>
 
-  <p>The <dfn id=ownerwindow
-   title=dom-MessagePort-ownerWindow><code>ownerWindow</code></dfn> attribute
-   must return the value it was assigned when the <code><a
-   href="#messageport0">MessagePort</a></code> object was created.
-
   <p>The <dfn id=active0
    title=dom-MessagePort-active><code>active</code></dfn> attribute must
    return the last value that it was set to according to the rules of this
@@ -44076,10 +44068,9 @@
      <li>
       <p>Try to obtain a <var title="">new data port</var> by <a
        href="#clone" title="clone a port">cloning</a> the <var title="">data
-       port</var> with the <a href="#ownerwindow"
-       title=dom-MessagePort-ownerWindow>owner</a> of the <var
-       title="">target port</var> as the owner of the clone. If this returns
-       an exception, then throw that exception and abort these steps.
+       port</var> with the owner of the <var title="">target port</var> as
+       the owner of the clone. If this returns an exception, then throw that
+       exception and abort these steps.
 
      <li>
       <p>Let the <code title=dom-MessageEvent-messagePort><a
@@ -44091,16 +44082,17 @@
     <p>Return true from the method, but continue with these steps.
 
    <li>
-    <p>Wait for all scripts in the <a href="#unit-of">unit of related
-     browsing contexts</a> to which the <a href="#ownerwindow"
-     title=dom-MessagePort-ownerWindow>owner</a> of the <var title="">target
-     port</var> belongs to have executed to completion, and then dispatch the
-     event at the <var title="">target port</var> object. If this never
-     happens (e.g. the relevant <a href="#browsing1">browsing context</a> is
-     closed by the user before the event can be dispatched), then discard the
-     event.
+    <p>Wait for all scripts in the conceptual thread that the <a
+     href="#script2">script execution context</a> that owns the <var
+     title="">target port</var> belongs to have executed to completion. If
+     this never happens (e.g. the relevant <a href="#browsing1">browsing
+     context</a> is closed by the user before the event can be dispatched),
+     then discard the event.
    </li>
    <!-- XXX queue -->
+
+   <li>
+    <p>Dispatch the event at the <var title="">target port</var> object.
   </ol>
 
   <p class=big-issue>People often request the ability to send name/value
@@ -44193,9 +44185,8 @@
   <p>Ports are deactivated and unentangled when the <code>Document</code>
    that was the <a href="#active">active document</a> of the <a
    href="#browsing1">browsing context</a> corresponding to the <code><a
-   href="#window">Window</a></code> object that <a href="#ownerwindow"
-   title=dom-MessagePort-ownerWindow>owns</a> them is <a href="#discard"
-   title="discard a document">discarded</a>.
+   href="#window">Window</a></code> object that owns them is <a
+   href="#discard" title="discard a document">discarded</a>.
 
   <p>To <dfn id=deactivate>deactivate a port</dfn> <var title="">local
    port</var> that is entangled with a second port <var title="">remote

Received on Wednesday, 6 August 2008 00:29:51 UTC