From 4176692b0472bc50c885501ce668d381d7cdf02d Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Fri, 1 Sep 2023 10:35:02 +0200 Subject: [PATCH] Bundle workers with script execution 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., https://github.com/web-platform-tests/wpt/pull/41758. --- source | 8 -------- 1 file changed, 8 deletions(-) diff --git a/source b/source index 9eed14980e2..a96c2fea339 100644 --- a/source +++ b/source @@ -115194,10 +115194,6 @@ enum WorkerType { "classic", "module" }; steps:

    -
  1. The user agent may throw a "SecurityError" - DOMException if the request violates a policy decision (e.g. if the user agent is - configured to not allow the page to start dedicated workers).

  2. -
  3. Let outside settings be the current settings object.

  4. Parse the scriptURL argument relative to @@ -115289,10 +115285,6 @@ interface SharedWorker : EventTarget { constructor is invoked:

      -
    1. Optionally, throw a "SecurityError" DOMException - if the request violates a policy decision (e.g. if the user agent is configured to not allow the - page to start shared workers).

    2. -
    3. If options is a DOMString, set options to a new WorkerOptions dictionary whose name member is set to the value of options and whose other members