aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/script_msg.rs
diff options
context:
space:
mode:
authorNikhil Shagrithaya <nikhilshagri@gmail.com>2017-02-01 13:45:35 +0530
committerNikhil Shagrithaya <nikhilshagri@gmail.com>2017-05-31 17:28:53 +0530
commit541baafe1c644f5276fe417a4d7e3696d3b22e68 (patch)
tree50a6a4e450dc54b0a943e2527742bc3e768a732d /components/script_traits/script_msg.rs
parent779edd7c4aaf900f12fab378a378b0fc52d4c628 (diff)
downloadservo-541baafe1c644f5276fe417a4d7e3696d3b22e68.tar.gz
servo-541baafe1c644f5276fe417a4d7e3696d3b22e68.zip
Redirect document loads manually
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r--components/script_traits/script_msg.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs
index 9bb7053daa0..ec6f85f5a61 100644
--- a/components/script_traits/script_msg.rs
+++ b/components/script_traits/script_msg.rs
@@ -20,6 +20,7 @@ use ipc_channel::ipc::IpcSender;
use msg::constellation_msg::{BrowsingContextId, TopLevelBrowsingContextId, FrameType, PipelineId, TraversalDirection};
use msg::constellation_msg::{Key, KeyModifiers, KeyState};
use net_traits::CoreResourceMsg;
+use net_traits::request::RequestInit;
use net_traits::storage_thread::StorageType;
use offscreen_gl_context::{GLContextAttributes, GLLimits};
use servo_url::ImmutableOrigin;
@@ -67,6 +68,9 @@ pub enum LogEntry {
/// Messages from the script to the constellation.
#[derive(Deserialize, Serialize)]
pub enum ScriptMsg {
+ /// Requests are sent to constellation and fetches are checked manually
+ /// for cross-origin loads
+ InitiateNavigateRequest(RequestInit, PipelineId),
/// Broadcast a storage event to every same-origin pipeline.
/// The strings are key, old value and new value.
BroadcastStorageEvent(PipelineId, StorageType, ServoUrl, Option<String>, Option<String>, Option<String>),