Skip to content

Commit

Permalink
No longer allow a policy exception just for workers
Browse files Browse the repository at this point in the history
In particular, if you can execute script, you can execute a worker. Making workers an optional feature is not actually something user agents implement and has led to implementer confusion, e.g., web-platform-tests/wpt#41758.
  • Loading branch information
annevk authored Sep 4, 2023
1 parent be6c665 commit 6ca960a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -115194,10 +115194,6 @@ enum <dfn enum>WorkerType</dfn> { "classic", "module" };
steps:</p>

<ol>
<li><p>The user agent may throw a <span>"<code>SecurityError</code>"</span>
<code>DOMException</code> 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>Let <var>outside settings</var> be the <span>current settings object</span>.</p>

<li><p><span data-x="parse a url">Parse</span> the <var>scriptURL</var> argument relative to
Expand Down Expand Up @@ -115289,10 +115285,6 @@ interface <dfn interface>SharedWorker</dfn> : <span>EventTarget</span> {
constructor is invoked:</p>

<ol>
<li><p>Optionally, throw a <span>"<code>SecurityError</code>"</span> <code>DOMException</code>
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>If <var>options</var> is a <code data-x="idl-DOMString">DOMString</code>, set
<var>options</var> to a new <code>WorkerOptions</code> dictionary whose <code
data-x="">name</code> member is set to the value of <var>options</var> and whose other members
Expand Down

0 comments on commit 6ca960a

Please sign in to comment.