From e48b06626aadfa1ff304a63900dd3c2c8b556af9 Mon Sep 17 00:00:00 2001 From: Luke Warlow Date: Tue, 15 Jul 2025 13:36:56 +0100 Subject: [PATCH] Patch CSP's "Get effective directive for request" to include "monetization" and `monetization-src` Also patch FETCH's destionation type. --- .../specification/specification-respec.html | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/src/pages/specification/specification-respec.html b/src/pages/specification/specification-respec.html index 42a2b17b..1a1c2f50 100644 --- a/src/pages/specification/specification-respec.html +++ b/src/pages/specification/specification-respec.html @@ -828,6 +828,64 @@

+
+

Fetch destination type

+

This spec patches the [[FETCH]] specification's [=destination type=].

+

A destination type is one of: + the empty string, + "audio", + "audioworklet", + "document", + "embed", + "font", + "frame", + "iframe", + "image", + "json", + "manifest", + "monetization", + "object", + "paintworklet", + "report", + "script", + "serviceworker", + "sharedworker", + "style", + "track", + "video", + "webidentity", + "worker", or + "xslt". +

+
+
+

+ Get the effective directive for request +

+

+ This spec patches the [[CSP]] specification's effective directive for request +

+

+ Given a request (|request|): +

+
    +
  1. ...
  2. +
  3. Switch on |request|'s destination: +
    + ... + +
    `"monetization"`
    +
    +
      +
    1. Return `monetization-src`.
    2. +
    +
    +
    +
    +
  4. +
  5. Return `connect-src`.
  6. +
+