Skip to content

Implement Document.referrer #12389

@jdm

Description

@jdm

This is required for #10311. We should store an Option<String> value in Document that is obtained from the Referer HTTP header (if present) when the document is created in ScriptThread::load.

Spec: https://html.spec.whatwg.org/multipage/dom.html#dom-document-referrer
Code: components/script/dom/document.rs, components/script/script_thread.rs
Tests: ./mach test-wpt tests/wpt/web-platform-tests/referrer-policy may show new results with this change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/domInteracting with the DOM from web contentC-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions