Skip to content

Navigation API: no-referrer-dynamic-censored.html breaks spec/does opposite of what spec defines #56206

@theIDinside

Description

@theIDinside

The test in question navigation-api/navigation-history-entry/no-referrer-dynamic-url-censored.html, changes the referrer policy for the document, by inserting <meta> tags. This will affect fetches made by the document, not of the document itself.

The spec, for the url getter states in step 4 that:

  1. If she's document does not equal document, and she's document state's request referrer policy is "no-referrer" or "origin", then return null.

We see the reference to the "request referrer policy" here. The link explains with a note that:

The request referrer policy is distinct from the history policy container's referrer policy. The former is used for fetches of this document, whereas the latter controls fetches by this document.

The meta tag seems to affect the latter ("history policy container's referrer policy") only.

That makes this test test what is not specified. I've also filed an issue for this with the spec itself: whatwg/html#11941

Cc @zcorpan @farre

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