[html5] r7519 - [giow] (0) Allow UAs to disable workers on a page-by-page basis by throwing an e [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Nov 20 15:07:40 PST 2012


Author: ianh
Date: 2012-11-20 15:07:39 -0800 (Tue, 20 Nov 2012)
New Revision: 7519

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Allow UAs to disable workers on a page-by-page basis by throwing an exception in the constructor.
Affected topics: Web Workers

Modified: complete.html
===================================================================
--- complete.html	2012-11-20 22:52:09 UTC (rev 7518)
+++ complete.html	2012-11-20 23:07:39 UTC (rev 7519)
@@ -84046,7 +84046,11 @@
   </table><hr><p>When the <dfn id=dom-worker title=dom-Worker><code>Worker(<var title="">scriptURL</var>)</code></dfn> constructor is invoked, the
   user agent must run the following steps:</p>
 
-  <ol><li><p><a href=#resolve-a-url title="resolve a url">Resolve</a> the <var title="">scriptURL</var> argument relative to the <a href=#entry-script>entry
+  <ol><li><p>The user agent may throw a <code><a href=#securityerror>SecurityError</a></code> exception and abort these steps if
+   the request violates a policy decision (e.g. if the user agent is configured to not allow the
+   page to start dedicated workers).</li>
+
+   <li><p><a href=#resolve-a-url title="resolve a url">Resolve</a> the <var title="">scriptURL</var> argument relative to the <a href=#entry-script>entry
    script</a>'s <a href="#script's-base-url" title="script's base URL">base URL</a>,
    when the method is invoked.</li>
 
@@ -84169,8 +84173,12 @@
   constructor is invoked, the user agent must run the following
   steps:</p>
 
-  <ol><li><p><a href=#resolve-a-url title="resolve a url">Resolve</a> the <var title="">scriptURL</var> argument.</li>
+  <ol><li><p>The user agent may throw a <code><a href=#securityerror>SecurityError</a></code> exception and abort these steps if
+   the request violates a policy decision (e.g. if the user agent is configured to not allow the
+   page to start shared workers).</li>
 
+   <li><p><a href=#resolve-a-url title="resolve a url">Resolve</a> the <var title="">scriptURL</var> argument.</li>
+
    <li><p>If this fails, throw a <code><a href=#syntaxerror>SyntaxError</a></code>
    exception.</li>
 

Modified: index
===================================================================
--- index	2012-11-20 22:52:09 UTC (rev 7518)
+++ index	2012-11-20 23:07:39 UTC (rev 7519)
@@ -84046,7 +84046,11 @@
   </table><hr><p>When the <dfn id=dom-worker title=dom-Worker><code>Worker(<var title="">scriptURL</var>)</code></dfn> constructor is invoked, the
   user agent must run the following steps:</p>
 
-  <ol><li><p><a href=#resolve-a-url title="resolve a url">Resolve</a> the <var title="">scriptURL</var> argument relative to the <a href=#entry-script>entry
+  <ol><li><p>The user agent may throw a <code><a href=#securityerror>SecurityError</a></code> exception and abort these steps if
+   the request violates a policy decision (e.g. if the user agent is configured to not allow the
+   page to start dedicated workers).</li>
+
+   <li><p><a href=#resolve-a-url title="resolve a url">Resolve</a> the <var title="">scriptURL</var> argument relative to the <a href=#entry-script>entry
    script</a>'s <a href="#script's-base-url" title="script's base URL">base URL</a>,
    when the method is invoked.</li>
 
@@ -84169,8 +84173,12 @@
   constructor is invoked, the user agent must run the following
   steps:</p>
 
-  <ol><li><p><a href=#resolve-a-url title="resolve a url">Resolve</a> the <var title="">scriptURL</var> argument.</li>
+  <ol><li><p>The user agent may throw a <code><a href=#securityerror>SecurityError</a></code> exception and abort these steps if
+   the request violates a policy decision (e.g. if the user agent is configured to not allow the
+   page to start shared workers).</li>
 
+   <li><p><a href=#resolve-a-url title="resolve a url">Resolve</a> the <var title="">scriptURL</var> argument.</li>
+
    <li><p>If this fails, throw a <code><a href=#syntaxerror>SyntaxError</a></code>
    exception.</li>
 

Modified: source
===================================================================
--- source	2012-11-20 22:52:09 UTC (rev 7518)
+++ source	2012-11-20 23:07:39 UTC (rev 7519)
@@ -97793,6 +97793,10 @@
 
   <ol>
 
+   <li><p>The user agent may throw a <code>SecurityError</code> exception and abort these steps if
+   the request violates a policy decision (e.g. if the user agent is configured to not allow the
+   page to start dedicated workers).</p></li>
+
    <li><p><span title="resolve a url">Resolve</span> the <var
    title="">scriptURL</var> argument relative to the <span>entry
    script</span>'s <span title="script's base URL">base URL</span>,
@@ -97933,6 +97937,10 @@
 
   <ol>
 
+   <li><p>The user agent may throw a <code>SecurityError</code> exception and abort these steps if
+   the request violates a policy decision (e.g. if the user agent is configured to not allow the
+   page to start shared workers).</p></li>
+
    <li><p><span title="resolve a url">Resolve</span> the <var
    title="">scriptURL</var> argument.</p></li>
 




More information about the Commit-Watchers mailing list