From 5e4ef7a41c44a7229db10d33659a980f04494f00 Mon Sep 17 00:00:00 2001 From: Mike West Date: Fri, 2 Dec 2016 15:00:36 +0100 Subject: [PATCH] Pass a base URL to the URL parser for violation reporting. Closes w3c/webappsec#521. --- index.html | 9 +++++---- index.src.html | 6 ++++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 00a63f0f0a..5fa75dfe12 100644 --- a/index.html +++ b/index.html @@ -1453,7 +1453,7 @@

Content Security Policy Level 3

-

Editor’s Draft,

+

Editor’s Draft,

This version: @@ -2887,7 +2887,7 @@

If violation’s policy’s directive set contains a directive named "report-to", skip the remaining substeps.

  • -

    Let endpoint be the result of executing the URL parser on directive’s value.

    +

    Let endpoint be the result of executing the URL parser with directive’s value as the input, and violation’s url as the base URL.

  • If endpoint is not a valid URL, skip the remaining substeps.

  • @@ -2900,7 +2900,7 @@

    url

    -

    violation’s url

    +

    violation’s url

    origin

    @@ -5558,6 +5558,7 @@

    [WHATWG-URL] defines the following terms: