@@ -1749,6 +1749,7 @@ the empty string,
1749
1749
"<code> frame</code> ",
1750
1750
"<code> iframe</code> ",
1751
1751
"<code> image</code> ",
1752
+ "<code> json</code> ",
1752
1753
"<code> manifest</code> ",
1753
1754
"<code> object</code> ",
1754
1755
"<code> paintworklet</code> ",
@@ -1768,7 +1769,7 @@ and "<code>webidentity</code>" as fetches with those destinations skip service w
1768
1769
<!-- Dependencies:
1769
1770
* CSP: https://w3c.github.io/webappsec-csp/#effective-directive-for-a-request
1770
1771
* Mixed Content
1771
- * Preload: https://w3c.github.io/preload/#processing
1772
+ * Preload: https://html.spec.whatwg.org/multipage/links.html#link-type-preload
1772
1773
* HTML -->
1773
1774
1774
1775
<p> A <a for=/>request</a> 's <a for=request>destination</a> is
@@ -1793,7 +1794,7 @@ not always relevant and might require different behavior.
1793
1794
<th> CSP directive
1794
1795
<th> Features
1795
1796
<tr>
1796
- <td rowspan=20 > ""
1797
+ <td rowspan=21 > ""
1797
1798
<td> "<code> report</code> "
1798
1799
<td rowspan=2> —
1799
1800
<td> CSP, NEL reports.
@@ -1864,10 +1865,14 @@ not always relevant and might require different behavior.
1864
1865
<td> "<code> worker</code> "
1865
1866
<td><code> child-src</code> , <code> script-src</code> , <code> worker-src</code>
1866
1867
<td><code> Worker</code>
1868
+ <tr>
1869
+ <td> "<code> json</code> "
1870
+ <td><code> connect-src</code>
1871
+ <td><code> import "..." with { type: "json" }</code>
1867
1872
<tr>
1868
1873
<td> "<code> style</code> "
1869
1874
<td><code> style-src</code>
1870
- <td> HTML's <code> <link rel=stylesheet></code> , CSS' <code> @import</code>
1875
+ <td> HTML's <code> <link rel=stylesheet></code> , CSS' <code> @import</code> , <code> import "..." with { type: "css" } </code>
1871
1876
<tr>
1872
1877
<td> "<code> track</code> "
1873
1878
<td><code> media-src</code>
@@ -2197,9 +2202,9 @@ bookkeeping details by the <a for=/>fetch</a> algorithm.
2197
2202
2198
2203
<p> A <dfn export>subresource request</dfn> is a <a for=/>request</a>
2199
2204
whose <a for=request>destination</a> is "<code> audio</code> ", "<code> audioworklet</code> ",
2200
- "<code> font</code> ", "<code> image</code> ", "<code> manifest </code> ", "<code> paintworklet </code> ",
2201
- "<code> script </code> ", "<code> style </code> ", "<code> track </code> ", "<code> video </code> ",
2202
- "<code> xslt</code> ", or the empty string.
2205
+ "<code> font</code> ", "<code> image</code> ", "<code> json </code> " "<code> manifest </code> ",
2206
+ "<code> paintworklet </code> ", "<code> script </code> ", "<code> style </code> ", "<code> track </code> ",
2207
+ "<code> video </code> ", " <code> xslt</code> ", or the empty string.
2203
2208
2204
2209
<p> A <dfn export>non-subresource request</dfn> is a <a for=/>request</a>
2205
2210
whose <a for=request>destination</a> is "<code> document</code> ", "<code> embed</code> ",
@@ -4381,6 +4386,9 @@ the response. [[!HTTP-CACHING]]
4381
4386
<dt> "<code> image</code> "
4382
4387
<dd> `<code> image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5</code> `
4383
4388
4389
+ <dt> "<code> json</code> "
4390
+ <dd> `<code> application/json,*/*;q=0.5</code> `
4391
+
4384
4392
<dt> "<code> style</code> "
4385
4393
<dd> `<code> text/css,*/*;q=0.1</code> `
4386
4394
</dl>
@@ -7404,7 +7412,7 @@ dictionary RequestInit {
7404
7412
any window; // can only be set to null
7405
7413
};
7406
7414
7407
- enum RequestDestination { "", "audio", "audioworklet", "document", "embed", "font", "frame", "iframe", "image", "manifest", "object", "paintworklet", "report", "script", "sharedworker", "style", "track", "video", "worker", "xslt" };
7415
+ enum RequestDestination { "", "audio", "audioworklet", "document", "embed", "font", "frame", "iframe", "image", "json", " manifest", "object", "paintworklet", "report", "script", "sharedworker", "style", "track", "video", "worker", "xslt" };
7408
7416
enum RequestMode { "navigate", "same-origin", "no-cors", "cors" };
7409
7417
enum RequestCredentials { "omit", "same-origin", "include" };
7410
7418
enum RequestCache { "default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached" };
0 commit comments