Skip to content

Inline checks in Should navigation request of type be blocked by Content Security Policy? set blockedURI to inline #719

@TimvdLippe

Description

@TimvdLippe

I am implementing navigation CSP checks in Servo atm and https://w3c.github.io/webappsec-csp/#should-block-navigation-request step 3.1.1.4 claims that the resource should be the URL. However, WPT tests verify that inline is the violation resource: https://github.com/web-platform-tests/wpt/blob/5726251d00e45c1ef06b0894dd843a93359c8f13/content-security-policy/navigation/to-javascript-url-script-src.html#L13

I initially implemented it as URL, but changed it to inline now, as all other browsers appear to do the same: https://wpt.fyi/results/content-security-policy/navigation/to-javascript-url-script-src.html?label=experimental&label=master&aligned

Should the resource be set to inline instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions