diff --git a/roles/test-e2e-playwright/files/personas/utils/csp.js b/roles/test-e2e-playwright/files/personas/utils/csp.js index 996f33babd..0b93d95a0f 100644 --- a/roles/test-e2e-playwright/files/personas/utils/csp.js +++ b/roles/test-e2e-playwright/files/personas/utils/csp.js @@ -1,11 +1,11 @@ /** * CSP injection assertion shared by every persona scenario. * - * `assertCspInjections` re-fetches the current URL via - * `page.request.get` so it can read the raw `content-security-policy` - * (or `content-security-policy-report-only`) header off the response, - * then verifies that every service whose JavaScript / CSS / asset is - * actually injected on the page is also covered by the role's CSP. + * `assertCspInjections` reads the raw `content-security-policy` (or + * `content-security-policy-report-only`) header of the document the + * browser is currently showing, then verifies that every service whose + * JavaScript / CSS / asset is actually injected on the page is also + * covered by the role's CSP. * * The intent is symmetric: when an injector role like `mastodon`, * `web-svc-asset`, `web-svc-cdn`, `web-svc-css`, `web-svc-javascript` @@ -14,9 +14,10 @@ * any rendered `