mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Implement Document.referrer
This commit is contained in:
parent
9e010a8aec
commit
d6c1f7b5e3
17 changed files with 55 additions and 32 deletions
|
@ -36,6 +36,7 @@ pub fn factory(mut load_data: LoadData,
|
|||
headers: None,
|
||||
status: Some(RawStatus(200, "OK".into())),
|
||||
https_state: HttpsState::None,
|
||||
referrer: None,
|
||||
};
|
||||
if let Ok(chan) = start_sending_sniffed_opt(start_chan,
|
||||
metadata,
|
||||
|
|
|
@ -51,6 +51,7 @@ pub fn load_blob(load_data: LoadData, start_chan: LoadConsumer,
|
|||
// https://w3c.github.io/FileAPI/#TwoHundredOK
|
||||
status: Some(RawStatus(200, "OK".into())),
|
||||
https_state: HttpsState::None,
|
||||
referrer: None
|
||||
};
|
||||
|
||||
if let Ok(chan) =
|
||||
|
|
|
@ -1070,6 +1070,7 @@ pub fn load<A, B>(load_data: &LoadData,
|
|||
} else {
|
||||
HttpsState::None
|
||||
};
|
||||
metadata.referrer = referrer_url;
|
||||
|
||||
// Only notify the devtools about the final request that received a response.
|
||||
if let Some(msg) = msg {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue