[html5] r7226 - [e] (0) Upgrade Web IDL terminology. Fixing https://www.w3.org/Bugs/Public/show_ [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Aug 8 17:21:55 PDT 2012


Author: ianh
Date: 2012-08-08 17:21:53 -0700 (Wed, 08 Aug 2012)
New Revision: 7226

Modified:
   complete.html
   index
   source
Log:
[e] (0) Upgrade Web IDL terminology.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=15158
Affected topics: DOM APIs, HTML, Web Workers

Modified: complete.html
===================================================================
--- complete.html	2012-08-07 19:09:45 UTC (rev 7225)
+++ complete.html	2012-08-09 00:21:53 UTC (rev 7226)
@@ -246,7 +246,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 7 August 2012</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 9 August 2012</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -4095,8 +4095,8 @@
     required for conforming IDL fragments, as described in the Web IDL
     specification. <a href=#refsWEBIDL>[WEBIDL]</a></p>
 
-    <p>The terms <dfn id=relevant-namespace-object>relevant namespace object</dfn>, <dfn id=supported-property-indices>supported
-    property indices</dfn>, <dfn id=determine-the-value-of-an-indexed-property>determine the value of an indexed
+    <p>The terms <dfn id=expose>expose</dfn>, <dfn id=supported-property-indices>supported property
+    indices</dfn>, <dfn id=determine-the-value-of-an-indexed-property>determine the value of an indexed
     property</dfn>, <dfn id=support-named-properties>support named properties</dfn>,
     <dfn id=supported-property-names>supported property names</dfn>, <dfn id=determine-the-value-of-a-named-property>determine the value of a
     named property</dfn>, <dfn id=platform-array-objects>platform array objects</dfn>, and <dfn id=dfn-read-only-array title=dfn-read-only-array>read only</dfn> (when applied to
@@ -4150,6 +4150,10 @@
     being an officially obsoleted type</a> according to RFC
     4329. <a href=#refsRFC4329>[RFC4329]</a></p>
 
+    <p>The term <dfn id=javascript-global-environment>JavaScript global environment</dfn> refers to the
+    <i title="">global environment</i> concept defined in the
+    ECMAScript specification.</p>
+
    </dd>
 
 <!--TOPIC:HTML-->
@@ -67218,9 +67222,8 @@
 
   </dl><div class=impl>
 
-  <p>The <code><a href=#window>Window</a></code> interface must not exist if the
-  interface's <a href=#relevant-namespace-object>relevant namespace object</a> is not a
-  <code><a href=#window>Window</a></code> object. <a href=#refsWEBIDL>[WEBIDL]</a></p>
+  <p>The <code><a href=#window>Window</a></code> interface must only be <a href=#expose title=expose>exposed</a> if the <a href=#javascript-global-environment>JavaScript global
+  environment</a> is a <a href=#document-environment>document environment</a>.</p>
 
   <p>The <dfn id=dom-window title=dom-window><code>window</code></dfn>, <dfn id=dom-frames title=dom-frames><code>frames</code></dfn>, and <dfn id=dom-self title=dom-self><code>self</code></dfn> IDL attributes must all
   return the <code><a href=#window>Window</a></code> object's <a href=#browsing-context>browsing
@@ -73563,8 +73566,18 @@
 
   <h5 id=definitions-0><span class=secno>7.1.3.1 </span>Definitions</h5>
 
-  <p>A <dfn id=concept-script title=concept-script>script</dfn> has:</p>
+  <p>This specification describes three kinds of <a href=#javascript-global-environment title="JavaScript global environment">JavaScript global
+  environments</a>: the <dfn id=document-environment>document environment</dfn>, the
+  <dfn id=dedicated-worker-environment>dedicated worker environment</dfn>, and the <dfn id=shared-worker-environment>shared worker
+  environment</dfn>. The <a href=#dedicated-worker-environment>dedicated worker environment</a> and
+  the <a href=#shared-worker-environment>shared worker environment</a> are both types of <dfn id=worker-environment title="worker environment">worker environments</dfn>.</p>
 
+  <p>Except where otherwise specified, a <a href=#javascript-global-environment>JavaScript global
+  environment</a> is a <a href=#document-environment>document environment</a>.</p> <!--
+  note that we never actually say where one of these is created... -->
+
+  <hr><p>A <dfn id=concept-script title=concept-script>script</dfn> has:</p>
+
   <dl><dt>A <dfn id=script-execution-environment>script execution environment</dfn></dt>
 
    <dd>
@@ -73848,7 +73861,7 @@
   handler</a> <var title="">onerror</var>, it must run these steps,
   after which the error is either <dfn id=concept-error-handled title=concept-error-handled><i>handled</i></dfn> or <dfn id=concept-error-nothandled title=concept-error-nothandled><i>not handled</i></dfn>:</p>
 
-  <dl class=switch><dt>If the value of <var title="">onerror</var> is a
+  <dl class=switch><dt>If the value of <var title="">onerror</var> is an
    <code><a href=#onerroreventhandler>OnErrorEventHandler</a></code></dt>
 
    <dd>
@@ -81772,9 +81785,10 @@
            attribute <a href=#eventhandler>EventHandler</a> <a href=#handler-dedicatedworkerglobalscope-onmessage title=handler-DedicatedWorkerGlobalScope-onmessage>onmessage</a>;
 };</pre>
 
-  <p>The <code><a href=#dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</a></code> interface must not
-  exist if the interface's <a href=#relevant-namespace-object>relevant namespace object</a> is
-  not a <code><a href=#dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</a></code> object. <a href=#refsWEBIDL>[WEBIDL]</a></p>
+  <p>The <code><a href=#dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</a></code> interface must only
+  be <a href=#expose title=expose>exposed</a> if the <a href=#javascript-global-environment>JavaScript
+  global environment</a> is a <a href=#dedicated-worker-environment>dedicated worker
+  environment</a>.</p>
 
   <p><code><a href=#dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</a></code> objects act as if they
   had an implicit <code><a href=#messageport>MessagePort</a></code> associated with them. This
@@ -81816,9 +81830,9 @@
            attribute <a href=#eventhandler>EventHandler</a> <a href=#handler-sharedworkerglobalscope-onconnect title=handler-SharedWorkerGlobalScope-onconnect>onconnect</a>;
 };</pre>
 
-  <p>The <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> interface must not
-  exist if the interface's <a href=#relevant-namespace-object>relevant namespace object</a> is
-  not a <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> object. <a href=#refsWEBIDL>[WEBIDL]</a></p>
+  <p>The <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> interface must only be
+  <a href=#expose title=expose>exposed</a> if the <a href=#javascript-global-environment>JavaScript global
+  environment</a> is a <a href=#shared-worker-environment>shared worker environment</a>.</p>
 
   <p>Shared workers receive message ports through <code title=event-WorkerGlobalScope-connect>connect</code> events on
   their global object for each connection.</p>
@@ -82018,6 +82032,15 @@
 
    </li>
 
+   <li><p>In the newly created execution environment, create a
+   <a href=#javascript-global-environment>JavaScript global environment</a> whose <i>global
+   object</i> is <var title="">worker global scope</var>. If <var title="">worker global scope</var> is a
+   <code><a href=#dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</a></code> object, then this is a
+   <a href=#dedicated-worker-environment>dedicated worker environment</a>. Otherwise, <var title="">worker global scope</var> is a
+   <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> object, and this is a
+   <a href=#shared-worker-environment>shared worker environment</a>. (In either case, by
+   definition, it is a <a href=#worker-environment>worker environment</a>.)</li>
+
    <li>
 
     <p>A new <a href=#concept-script title=concept-script>script</a> is now
@@ -82859,19 +82882,17 @@
   <code><a href=#navigatoronline>NavigatorOnLine</a></code> interfaces.
   </p>
 
-  <p>This <code><a href=#workernavigator>WorkerNavigator</a></code> interface must not exist if the
-  interface's <a href=#relevant-namespace-object>relevant namespace object</a> is a
-  <code><a href=#window>Window</a></code> object. <a href=#refsWEBIDL>[WEBIDL]</a></p>
+  <p>The <code><a href=#workernavigator>WorkerNavigator</a></code> interface must only be <a href=#expose title=expose>exposed</a> if the <a href=#javascript-global-environment>JavaScript global
+  environment</a> is a <a href=#worker-environment>worker environment</a>.</p>
 
 
 
 
   <h4 id=interface-objects-and-constructors><span class=secno>9.3.3 </span>Interface objects and constructors</h4>
 
-  <p>There must be no interface objects and constructors available in
-  the global scope of scripts whose <a href="#script's-global-object">script's global
-  object</a> is a <code><a href=#workerglobalscope>WorkerGlobalScope</a></code> object except for
-  the following:</p>
+  <p>Nothing must be <a href=#expose title=expose>exposed</a> when the
+  <a href=#javascript-global-environment>JavaScript global environment</a> is a <a href=#worker-environment>worker
+  environment</a> except for the following:</p>
 
   <ul><li><p><code>XMLHttpRequest</code> and all interface objects and
    constructors defined by the XMLHttpRequest specifications, except
@@ -82882,19 +82903,12 @@
    <a href=#origin>origin</a>. <a href=#refsXHR>[XHR]</a></li>
 
    <li><p>The interface objects and constructors defined by this
-   specification.</li>
+   specification, except where is further restricted by explicit
+   requirements in this specification.</li>
 
-   <li><p>Constructors defined by specifications that explicitly say
-   that they should be visible when the <a href="#script's-global-object">script's global
-   object</a> is a <code><a href=#dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</a></code>, a
-   <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code>, or an object implementing the
-   <code><a href=#workerutils>WorkerUtils</a></code> interface; the interfaces of any objects
-   with such constructors; and the interfaces of any objects made
-   accessible through APIs exposed by those constructors or made
-   accessible through interfaces to be implemented by any objects that
-   are themselves accessible to scripts whose <a href="#script's-global-object">script's global
-   object</a> implements the <code><a href=#workerutils>WorkerUtils</a></code>
-   interface.</li>
+   <li><p>The interface objects of any objects made accessible through
+   interfaces implemented by any objects that are themselves <a href=#expose title=expose>exposed</a> (i.e. this requirement is
+   transitive).</li>
 
   </ul><p class=note>These requirements do not override the requirements
   defined by the Web IDL specification, in particular concerning the
@@ -82935,9 +82949,8 @@
   no-op, since the attributes are defined to be readonly.
   </p>
 
-  <p>The <code><a href=#workerlocation>WorkerLocation</a></code> interface must not exist if the
-  interface's <a href=#relevant-namespace-object>relevant namespace object</a> is a
-  <code><a href=#window>Window</a></code> object. <a href=#refsWEBIDL>[WEBIDL]</a></p>
+  <p>The <code><a href=#workerlocation>WorkerLocation</a></code> interface must only be <a href=#expose title=expose>exposed</a> if the <a href=#javascript-global-environment>JavaScript global
+  environment</a> is a <a href=#worker-environment>worker environment</a>.</p>
 
 
 

Modified: index
===================================================================
--- index	2012-08-07 19:09:45 UTC (rev 7225)
+++ index	2012-08-09 00:21:53 UTC (rev 7226)
@@ -246,7 +246,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 7 August 2012</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 9 August 2012</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -4095,8 +4095,8 @@
     required for conforming IDL fragments, as described in the Web IDL
     specification. <a href=#refsWEBIDL>[WEBIDL]</a></p>
 
-    <p>The terms <dfn id=relevant-namespace-object>relevant namespace object</dfn>, <dfn id=supported-property-indices>supported
-    property indices</dfn>, <dfn id=determine-the-value-of-an-indexed-property>determine the value of an indexed
+    <p>The terms <dfn id=expose>expose</dfn>, <dfn id=supported-property-indices>supported property
+    indices</dfn>, <dfn id=determine-the-value-of-an-indexed-property>determine the value of an indexed
     property</dfn>, <dfn id=support-named-properties>support named properties</dfn>,
     <dfn id=supported-property-names>supported property names</dfn>, <dfn id=determine-the-value-of-a-named-property>determine the value of a
     named property</dfn>, <dfn id=platform-array-objects>platform array objects</dfn>, and <dfn id=dfn-read-only-array title=dfn-read-only-array>read only</dfn> (when applied to
@@ -4150,6 +4150,10 @@
     being an officially obsoleted type</a> according to RFC
     4329. <a href=#refsRFC4329>[RFC4329]</a></p>
 
+    <p>The term <dfn id=javascript-global-environment>JavaScript global environment</dfn> refers to the
+    <i title="">global environment</i> concept defined in the
+    ECMAScript specification.</p>
+
    </dd>
 
 <!--TOPIC:HTML-->
@@ -67218,9 +67222,8 @@
 
   </dl><div class=impl>
 
-  <p>The <code><a href=#window>Window</a></code> interface must not exist if the
-  interface's <a href=#relevant-namespace-object>relevant namespace object</a> is not a
-  <code><a href=#window>Window</a></code> object. <a href=#refsWEBIDL>[WEBIDL]</a></p>
+  <p>The <code><a href=#window>Window</a></code> interface must only be <a href=#expose title=expose>exposed</a> if the <a href=#javascript-global-environment>JavaScript global
+  environment</a> is a <a href=#document-environment>document environment</a>.</p>
 
   <p>The <dfn id=dom-window title=dom-window><code>window</code></dfn>, <dfn id=dom-frames title=dom-frames><code>frames</code></dfn>, and <dfn id=dom-self title=dom-self><code>self</code></dfn> IDL attributes must all
   return the <code><a href=#window>Window</a></code> object's <a href=#browsing-context>browsing
@@ -73563,8 +73566,18 @@
 
   <h5 id=definitions-0><span class=secno>7.1.3.1 </span>Definitions</h5>
 
-  <p>A <dfn id=concept-script title=concept-script>script</dfn> has:</p>
+  <p>This specification describes three kinds of <a href=#javascript-global-environment title="JavaScript global environment">JavaScript global
+  environments</a>: the <dfn id=document-environment>document environment</dfn>, the
+  <dfn id=dedicated-worker-environment>dedicated worker environment</dfn>, and the <dfn id=shared-worker-environment>shared worker
+  environment</dfn>. The <a href=#dedicated-worker-environment>dedicated worker environment</a> and
+  the <a href=#shared-worker-environment>shared worker environment</a> are both types of <dfn id=worker-environment title="worker environment">worker environments</dfn>.</p>
 
+  <p>Except where otherwise specified, a <a href=#javascript-global-environment>JavaScript global
+  environment</a> is a <a href=#document-environment>document environment</a>.</p> <!--
+  note that we never actually say where one of these is created... -->
+
+  <hr><p>A <dfn id=concept-script title=concept-script>script</dfn> has:</p>
+
   <dl><dt>A <dfn id=script-execution-environment>script execution environment</dfn></dt>
 
    <dd>
@@ -73848,7 +73861,7 @@
   handler</a> <var title="">onerror</var>, it must run these steps,
   after which the error is either <dfn id=concept-error-handled title=concept-error-handled><i>handled</i></dfn> or <dfn id=concept-error-nothandled title=concept-error-nothandled><i>not handled</i></dfn>:</p>
 
-  <dl class=switch><dt>If the value of <var title="">onerror</var> is a
+  <dl class=switch><dt>If the value of <var title="">onerror</var> is an
    <code><a href=#onerroreventhandler>OnErrorEventHandler</a></code></dt>
 
    <dd>
@@ -81772,9 +81785,10 @@
            attribute <a href=#eventhandler>EventHandler</a> <a href=#handler-dedicatedworkerglobalscope-onmessage title=handler-DedicatedWorkerGlobalScope-onmessage>onmessage</a>;
 };</pre>
 
-  <p>The <code><a href=#dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</a></code> interface must not
-  exist if the interface's <a href=#relevant-namespace-object>relevant namespace object</a> is
-  not a <code><a href=#dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</a></code> object. <a href=#refsWEBIDL>[WEBIDL]</a></p>
+  <p>The <code><a href=#dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</a></code> interface must only
+  be <a href=#expose title=expose>exposed</a> if the <a href=#javascript-global-environment>JavaScript
+  global environment</a> is a <a href=#dedicated-worker-environment>dedicated worker
+  environment</a>.</p>
 
   <p><code><a href=#dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</a></code> objects act as if they
   had an implicit <code><a href=#messageport>MessagePort</a></code> associated with them. This
@@ -81816,9 +81830,9 @@
            attribute <a href=#eventhandler>EventHandler</a> <a href=#handler-sharedworkerglobalscope-onconnect title=handler-SharedWorkerGlobalScope-onconnect>onconnect</a>;
 };</pre>
 
-  <p>The <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> interface must not
-  exist if the interface's <a href=#relevant-namespace-object>relevant namespace object</a> is
-  not a <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> object. <a href=#refsWEBIDL>[WEBIDL]</a></p>
+  <p>The <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> interface must only be
+  <a href=#expose title=expose>exposed</a> if the <a href=#javascript-global-environment>JavaScript global
+  environment</a> is a <a href=#shared-worker-environment>shared worker environment</a>.</p>
 
   <p>Shared workers receive message ports through <code title=event-WorkerGlobalScope-connect>connect</code> events on
   their global object for each connection.</p>
@@ -82018,6 +82032,15 @@
 
    </li>
 
+   <li><p>In the newly created execution environment, create a
+   <a href=#javascript-global-environment>JavaScript global environment</a> whose <i>global
+   object</i> is <var title="">worker global scope</var>. If <var title="">worker global scope</var> is a
+   <code><a href=#dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</a></code> object, then this is a
+   <a href=#dedicated-worker-environment>dedicated worker environment</a>. Otherwise, <var title="">worker global scope</var> is a
+   <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code> object, and this is a
+   <a href=#shared-worker-environment>shared worker environment</a>. (In either case, by
+   definition, it is a <a href=#worker-environment>worker environment</a>.)</li>
+
    <li>
 
     <p>A new <a href=#concept-script title=concept-script>script</a> is now
@@ -82859,19 +82882,17 @@
   <code><a href=#navigatoronline>NavigatorOnLine</a></code> interfaces.
   </p>
 
-  <p>This <code><a href=#workernavigator>WorkerNavigator</a></code> interface must not exist if the
-  interface's <a href=#relevant-namespace-object>relevant namespace object</a> is a
-  <code><a href=#window>Window</a></code> object. <a href=#refsWEBIDL>[WEBIDL]</a></p>
+  <p>The <code><a href=#workernavigator>WorkerNavigator</a></code> interface must only be <a href=#expose title=expose>exposed</a> if the <a href=#javascript-global-environment>JavaScript global
+  environment</a> is a <a href=#worker-environment>worker environment</a>.</p>
 
 
 
 
   <h4 id=interface-objects-and-constructors><span class=secno>9.3.3 </span>Interface objects and constructors</h4>
 
-  <p>There must be no interface objects and constructors available in
-  the global scope of scripts whose <a href="#script's-global-object">script's global
-  object</a> is a <code><a href=#workerglobalscope>WorkerGlobalScope</a></code> object except for
-  the following:</p>
+  <p>Nothing must be <a href=#expose title=expose>exposed</a> when the
+  <a href=#javascript-global-environment>JavaScript global environment</a> is a <a href=#worker-environment>worker
+  environment</a> except for the following:</p>
 
   <ul><li><p><code>XMLHttpRequest</code> and all interface objects and
    constructors defined by the XMLHttpRequest specifications, except
@@ -82882,19 +82903,12 @@
    <a href=#origin>origin</a>. <a href=#refsXHR>[XHR]</a></li>
 
    <li><p>The interface objects and constructors defined by this
-   specification.</li>
+   specification, except where is further restricted by explicit
+   requirements in this specification.</li>
 
-   <li><p>Constructors defined by specifications that explicitly say
-   that they should be visible when the <a href="#script's-global-object">script's global
-   object</a> is a <code><a href=#dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</a></code>, a
-   <code><a href=#sharedworkerglobalscope>SharedWorkerGlobalScope</a></code>, or an object implementing the
-   <code><a href=#workerutils>WorkerUtils</a></code> interface; the interfaces of any objects
-   with such constructors; and the interfaces of any objects made
-   accessible through APIs exposed by those constructors or made
-   accessible through interfaces to be implemented by any objects that
-   are themselves accessible to scripts whose <a href="#script's-global-object">script's global
-   object</a> implements the <code><a href=#workerutils>WorkerUtils</a></code>
-   interface.</li>
+   <li><p>The interface objects of any objects made accessible through
+   interfaces implemented by any objects that are themselves <a href=#expose title=expose>exposed</a> (i.e. this requirement is
+   transitive).</li>
 
   </ul><p class=note>These requirements do not override the requirements
   defined by the Web IDL specification, in particular concerning the
@@ -82935,9 +82949,8 @@
   no-op, since the attributes are defined to be readonly.
   </p>
 
-  <p>The <code><a href=#workerlocation>WorkerLocation</a></code> interface must not exist if the
-  interface's <a href=#relevant-namespace-object>relevant namespace object</a> is a
-  <code><a href=#window>Window</a></code> object. <a href=#refsWEBIDL>[WEBIDL]</a></p>
+  <p>The <code><a href=#workerlocation>WorkerLocation</a></code> interface must only be <a href=#expose title=expose>exposed</a> if the <a href=#javascript-global-environment>JavaScript global
+  environment</a> is a <a href=#worker-environment>worker environment</a>.</p>
 
 
 

Modified: source
===================================================================
--- source	2012-08-07 19:09:45 UTC (rev 7225)
+++ source	2012-08-09 00:21:53 UTC (rev 7226)
@@ -1,4 +1,4 @@
-<!-- EDITOR NOTES
+<<!-- EDITOR NOTES
  !
  !   Adding a new element involves editing the following sections:
  !    - section for the element itself
@@ -3053,8 +3053,8 @@
     required for conforming IDL fragments, as described in the Web IDL
     specification. <a href="#refsWEBIDL">[WEBIDL]</a></p>
 
-    <p>The terms <dfn>relevant namespace object</dfn>, <dfn>supported
-    property indices</dfn>, <dfn>determine the value of an indexed
+    <p>The terms <dfn>expose</dfn>, <dfn>supported property
+    indices</dfn>, <dfn>determine the value of an indexed
     property</dfn>, <dfn>support named properties</dfn>,
     <dfn>supported property names</dfn>, <dfn>determine the value of a
     named property</dfn>, <dfn>platform array objects</dfn>, and <dfn
@@ -3110,6 +3110,10 @@
     being an officially obsoleted type</span> according to RFC
     4329. <a href="#refsRFC4329">[RFC4329]</a></p>
 
+    <p>The term <dfn>JavaScript global environment</dfn> refers to the
+    <i title="">global environment</i> concept defined in the
+    ECMAScript specification.</p>
+
    </dd>
 
 <!--TOPIC:HTML-->
@@ -78790,9 +78794,9 @@
 
   <div class="impl">
 
-  <p>The <code>Window</code> interface must not exist if the
-  interface's <span>relevant namespace object</span> is not a
-  <code>Window</code> object. <a href="#refsWEBIDL">[WEBIDL]</a></p>
+  <p>The <code>Window</code> interface must only be <span
+  title="expose">exposed</span> if the <span>JavaScript global
+  environment</span> is a <span>document environment</span>.</p>
 
   <p>The <dfn title="dom-window"><code>window</code></dfn>, <dfn
   title="dom-frames"><code>frames</code></dfn>, and <dfn
@@ -86137,6 +86141,20 @@
 
   <h5>Definitions</h5>
 
+  <p>This specification describes three kinds of <span
+  title="JavaScript global environment">JavaScript global
+  environments</span>: the <dfn>document environment</dfn>, the
+  <dfn>dedicated worker environment</dfn>, and the <dfn>shared worker
+  environment</dfn>. The <span>dedicated worker environment</span> and
+  the <span>shared worker environment</span> are both types of <dfn
+  title="worker environment">worker environments</dfn>.</p>
+
+  <p>Except where otherwise specified, a <span>JavaScript global
+  environment</span> is a <span>document environment</span>.</p> <!--
+  note that we never actually say where one of these is created... -->
+
+  <hr>
+
   <p>A <dfn title="concept-script">script</dfn> has:</p>
 
   <dl>
@@ -86466,7 +86484,7 @@
 
   <dl class="switch">
 
-   <dt>If the value of <var title="">onerror</var> is a
+   <dt>If the value of <var title="">onerror</var> is an
    <code>OnErrorEventHandler</code></dt>
 
    <dd>
@@ -95021,10 +95039,10 @@
            attribute <span>EventHandler</span> <span title="handler-DedicatedWorkerGlobalScope-onmessage">onmessage</span>;
 };</pre>
 
-  <p>The <code>DedicatedWorkerGlobalScope</code> interface must not
-  exist if the interface's <span>relevant namespace object</span> is
-  not a <code>DedicatedWorkerGlobalScope</code> object. <a
-  href="#refsWEBIDL">[WEBIDL]</a></p>
+  <p>The <code>DedicatedWorkerGlobalScope</code> interface must only
+  be <span title="expose">exposed</span> if the <span>JavaScript
+  global environment</span> is a <span>dedicated worker
+  environment</span>.</p>
 
   <p><code>DedicatedWorkerGlobalScope</code> objects act as if they
   had an implicit <code>MessagePort</code> associated with them. This
@@ -95072,10 +95090,9 @@
            attribute <span>EventHandler</span> <span title="handler-SharedWorkerGlobalScope-onconnect">onconnect</span>;
 };</pre>
 
-  <p>The <code>SharedWorkerGlobalScope</code> interface must not
-  exist if the interface's <span>relevant namespace object</span> is
-  not a <code>SharedWorkerGlobalScope</code> object. <a
-  href="#refsWEBIDL">[WEBIDL]</a></p>
+  <p>The <code>SharedWorkerGlobalScope</code> interface must only be
+  <span title="expose">exposed</span> if the <span>JavaScript global
+  environment</span> is a <span>shared worker environment</span>.</p>
 
   <p>Shared workers receive message ports through <code
   title="event-WorkerGlobalScope-connect">connect</code> events on
@@ -95311,6 +95328,17 @@
 
    </li>
 
+   <li><p>In the newly created execution environment, create a
+   <span>JavaScript global environment</span> whose <i>global
+   object</i> is <var title="">worker global scope</var>. If <var
+   title="">worker global scope</var> is a
+   <code>DedicatedWorkerGlobalScope</code> object, then this is a
+   <span>dedicated worker environment</span>. Otherwise, <var
+   title="">worker global scope</var> is a
+   <code>SharedWorkerGlobalScope</code> object, and this is a
+   <span>shared worker environment</span>. (In either case, by
+   definition, it is a <span>worker environment</span>.)</p></li>
+
    <li>
 
     <p>A new <span title="concept-script">script</span> is now
@@ -96309,19 +96337,18 @@
   <!--START complete-->
   </p>
 
-  <p>This <code>WorkerNavigator</code> interface must not exist if the
-  interface's <span>relevant namespace object</span> is a
-  <code>Window</code> object. <a href="#refsWEBIDL">[WEBIDL]</a></p>
+  <p>The <code>WorkerNavigator</code> interface must only be <span
+  title="expose">exposed</span> if the <span>JavaScript global
+  environment</span> is a <span>worker environment</span>.</p>
 
 
 
 
   <h4>Interface objects and constructors</h4>
 
-  <p>There must be no interface objects and constructors available in
-  the global scope of scripts whose <span>script's global
-  object</span> is a <code>WorkerGlobalScope</code> object except for
-  the following:</p>
+  <p>Nothing must be <span title="expose">exposed</span> when the
+  <span>JavaScript global environment</span> is a <span>worker
+  environment</span> except for the following:</p>
 
   <ul>
 
@@ -96334,19 +96361,13 @@
    <span>origin</span>. <a href="#refsXHR">[XHR]</a></p></li>
 
    <li><p>The interface objects and constructors defined by this
-   specification.</p></li>
+   specification, except where is further restricted by explicit
+   requirements in this specification.</p></li>
 
-   <li><p>Constructors defined by specifications that explicitly say
-   that they should be visible when the <span>script's global
-   object</span> is a <code>DedicatedWorkerGlobalScope</code>, a
-   <code>SharedWorkerGlobalScope</code>, or an object implementing the
-   <code>WorkerUtils</code> interface; the interfaces of any objects
-   with such constructors; and the interfaces of any objects made
-   accessible through APIs exposed by those constructors or made
-   accessible through interfaces to be implemented by any objects that
-   are themselves accessible to scripts whose <span>script's global
-   object</span> implements the <code>WorkerUtils</code>
-   interface.</p></li>
+   <li><p>The interface objects of any objects made accessible through
+   interfaces implemented by any objects that are themselves <span
+   title="expose">exposed</span> (i.e. this requirement is
+   transitive).</p></li>
 
   </ul>
 
@@ -96399,9 +96420,9 @@
   <!--START complete-->
   </p>
 
-  <p>The <code>WorkerLocation</code> interface must not exist if the
-  interface's <span>relevant namespace object</span> is a
-  <code>Window</code> object. <a href="#refsWEBIDL">[WEBIDL]</a></p>
+  <p>The <code>WorkerLocation</code> interface must only be <span
+  title="expose">exposed</span> if the <span>JavaScript global
+  environment</span> is a <span>worker environment</span>.</p>
 
 
 




More information about the Commit-Watchers mailing list