mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Implement Document.referrer
This commit is contained in:
parent
9e010a8aec
commit
d6c1f7b5e3
17 changed files with 55 additions and 32 deletions
|
@ -565,6 +565,9 @@ pub struct Metadata {
|
|||
|
||||
/// Is successful HTTPS connection
|
||||
pub https_state: HttpsState,
|
||||
|
||||
/// Referrer Url
|
||||
pub referrer: Option<Url>,
|
||||
}
|
||||
|
||||
impl Metadata {
|
||||
|
@ -578,6 +581,7 @@ impl Metadata {
|
|||
// https://fetch.spec.whatwg.org/#concept-response-status-message
|
||||
status: Some(RawStatus(200, "OK".into())),
|
||||
https_state: HttpsState::None,
|
||||
referrer: None,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue