From 8ab040a62c993a3f730da333a3f0ae42fc341d14 Mon Sep 17 00:00:00 2001 From: Ian Kilpatrick Date: Wed, 25 Oct 2017 16:41:20 -0700 Subject: [PATCH] Add audioworklet and paintworklet as destinations --- fetch.bs | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/fetch.bs b/fetch.bs index b6e797a21..34093ed2c 100644 --- a/fetch.bs +++ b/fetch.bs @@ -778,12 +778,14 @@ JavaScript. [[!CSP]] [[!MIX]] destination, which is the empty string, "audio", +"audioworklet", "document", "embed", "font", "image", "manifest", "object", +"paintworklet", "report", "script", "serviceworker", @@ -802,8 +804,9 @@ the empty string, * HTML -->

A request's destination is -script-like if it is "script", -"serviceworker", "sharedworker", or "worker". +script-like if it is "audioworklet", +"paintworklet", "script", "serviceworker", +"sharedworker", or "worker".

Algorithms that use script-like should also consider "xslt" as that too can cause script execution. It is not included in the list as it is @@ -820,7 +823,7 @@ not always relevant and might require different behavior. CSP directive Features - "" + "" "report" — CSP, NEL reports. @@ -859,6 +862,14 @@ not always relevant and might require different behavior. HTML's <img src>, /favicon.ico resource, SVG's <image>, CSS' background-image, CSS' cursor, CSS' list-style-image, … + + "audioworklet" + script-src + audioWorklet.addModule() + + "paintworklet" + script-src + CSS.paintWorklet.addModule() "script" script-src @@ -1118,9 +1129,9 @@ Unless stated otherwise, it is unset.


A subresource request is a request -whose destination is "audio", "font", -"image", "manifest", "script", -"style", "track", "video", +whose destination is "audio", "audioworklet", +"font", "image", "manifest", "paintworklet", +"script", "style", "track", "video", "xslt", or the empty string.

A potential-navigation-or-subresource request is a @@ -4830,7 +4841,7 @@ dictionary RequestInit { any window; // can only be set to null }; -enum RequestDestination { "", "audio", "document", "embed", "font", "image", "manifest", "object", "report", "script", "sharedworker", "style", "track", "video", "worker", "xslt" }; +enum RequestDestination { "", "audio", "audioworklet", "document", "embed", "font", "image", "manifest", "object", "paintworklet", "report", "script", "sharedworker", "style", "track", "video", "worker", "xslt" }; enum RequestMode { "navigate", "same-origin", "no-cors", "cors" }; enum RequestCredentials { "omit", "same-origin", "include" }; enum RequestCache { "default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached" };