mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Make url for "client" referrer mandatory
This commit is contained in:
parent
37394a892c
commit
fa18cf620f
38 changed files with 410 additions and 213 deletions
|
@ -22,6 +22,7 @@ ipc-channel = "0.14"
|
|||
keyboard-types = "0.4.3"
|
||||
log = "0.4"
|
||||
msg = { path = "../msg" }
|
||||
net_traits = { path = "../net_traits" }
|
||||
pixels = { path = "../pixels" }
|
||||
script_traits = { path = "../script_traits" }
|
||||
serde = "1"
|
||||
|
|
|
@ -28,6 +28,7 @@ use ipc_channel::ipc::{self, IpcSender};
|
|||
use ipc_channel::router::ROUTER;
|
||||
use keyboard_types::webdriver::send_keys;
|
||||
use msg::constellation_msg::{BrowsingContextId, TopLevelBrowsingContextId, TraversalDirection};
|
||||
use net_traits::request::Referrer;
|
||||
use pixels::PixelFormat;
|
||||
use script_traits::webdriver_msg::{LoadStatus, WebDriverCookieError, WebDriverFrameId};
|
||||
use script_traits::webdriver_msg::{
|
||||
|
@ -643,7 +644,7 @@ impl Handler {
|
|||
|
||||
let top_level_browsing_context_id = self.session()?.top_level_browsing_context_id;
|
||||
|
||||
let load_data = LoadData::new(LoadOrigin::WebDriver, url, None, None, None);
|
||||
let load_data = LoadData::new(LoadOrigin::WebDriver, url, None, Referrer::NoReferrer, None);
|
||||
let cmd_msg = WebDriverCommandMsg::LoadUrl(
|
||||
top_level_browsing_context_id,
|
||||
load_data,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue