-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Implement Document.referrer #12389
Copy link
Copy link
Closed
Labels
A-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentC-assignedThere is someone working on resolving the issueThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.Straightforward. Recommended for a new contributor.
Metadata
Metadata
Assignees
Labels
A-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentC-assignedThere is someone working on resolving the issueThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.Straightforward. Recommended for a new contributor.
This is required for #10311. We should store an
Option<String>value inDocumentthat is obtained from theRefererHTTP header (if present) when the document is created inScriptThread::load.Spec: https://html.spec.whatwg.org/multipage/dom.html#dom-document-referrer
Code:
components/script/dom/document.rs,components/script/script_thread.rsTests:
./mach test-wpt tests/wpt/web-platform-tests/referrer-policymay show new results with this change.