diff options
author | bors-servo <release+servo@mozilla.com> | 2013-09-11 12:22:59 -0700 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2013-09-11 12:22:59 -0700 |
commit | 39252b25f792ae1b9c7e7d269083b18d29d9101a (patch) | |
tree | 54fa41940a00b2f4a59f2eeed28bddaab35947fc /src/components/script/script_task.rs | |
parent | 6289e069d4a5c980d7a079dab9a40b10de3497eb (diff) | |
parent | 96403247218ce628a39b954c361d0707d0d0f97d (diff) | |
download | servo-39252b25f792ae1b9c7e7d269083b18d29d9101a.tar.gz servo-39252b25f792ae1b9c7e7d269083b18d29d9101a.zip |
auto merge of #900 : jdm/servo/sandbox, r=metajack
The rust-mozjs change is just updating it to tip; do not be alarmed.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r-- | src/components/script/script_task.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index 759d37a6dc4..9d45dc7d8dc 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -22,7 +22,7 @@ use layout_interface::ReflowMsg; use layout_interface; use servo_msg::constellation_msg::{ConstellationChan, LoadUrlMsg, NavigationDirection}; use servo_msg::constellation_msg::{PipelineId, SubpageId, RendererReadyMsg}; -use servo_msg::constellation_msg::{LoadIframeUrlMsg}; +use servo_msg::constellation_msg::{LoadIframeUrlMsg, IFrameSandboxed, IFrameUnsandboxed}; use servo_msg::constellation_msg; use std::cell::Cell; @@ -641,12 +641,18 @@ impl ScriptTask { Some(HtmlDiscoveredStyle(sheet)) => { page.layout_chan.send(AddStylesheetMsg(sheet)); } - Some(HtmlDiscoveredIFrame((iframe_url, subpage_id, size_future))) => { + Some(HtmlDiscoveredIFrame((iframe_url, subpage_id, size_future, sandboxed))) => { page.next_subpage_id = SubpageId(*subpage_id + 1); + let sandboxed = if sandboxed { + IFrameSandboxed + } else { + IFrameUnsandboxed + }; self.constellation_chan.send(LoadIframeUrlMsg(iframe_url, pipeline_id, subpage_id, - size_future)); + size_future, + sandboxed)); } None => break } |