From 571beec179fe9fd5fff2c12b3c5dfa0a5d93df01 Mon Sep 17 00:00:00 2001 From: Gregory Terzian Date: Sun, 12 May 2019 17:37:19 +0800 Subject: clean-up navigation security: check target and source origin before executing JS url implement replacement-enabled flag as a HistoryEntryReplacement enum add source origin string on loaddata add LoadOrigin iframe: remove optional load-data auxiliaries: add load-data into info constellation: remove url from Pipeline::new check load origin: link to whatwg issue switch loadorigin toplevel to constellation --- components/webdriver_server/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/webdriver_server') diff --git a/components/webdriver_server/lib.rs b/components/webdriver_server/lib.rs index dcce929652b..6b2bcb2264b 100644 --- a/components/webdriver_server/lib.rs +++ b/components/webdriver_server/lib.rs @@ -30,7 +30,7 @@ use script_traits::webdriver_msg::{LoadStatus, WebDriverCookieError, WebDriverFr use script_traits::webdriver_msg::{ WebDriverJSError, WebDriverJSResult, WebDriverJSValue, WebDriverScriptCommand, }; -use script_traits::{ConstellationMsg, LoadData, WebDriverCommandMsg}; +use script_traits::{ConstellationMsg, LoadData, LoadOrigin, WebDriverCommandMsg}; use serde::de::{Deserialize, Deserializer, MapAccess, Visitor}; use serde::ser::{Serialize, Serializer}; use serde_json::{json, Value}; @@ -581,7 +581,7 @@ impl Handler { let (sender, receiver) = ipc::channel().unwrap(); - let load_data = LoadData::new(url, None, None, None); + let load_data = LoadData::new(LoadOrigin::WebDriver, url, None, None, None); let cmd_msg = WebDriverCommandMsg::LoadUrl(top_level_browsing_context_id, load_data, sender.clone()); self.constellation_chan -- cgit v1.2.3