aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/script_msg.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-11-28 10:23:04 +0100
committerMs2ger <Ms2ger@gmail.com>2016-11-30 11:26:35 +0100
commitb86965f3948cb830b084a53133ec949af0d11ff7 (patch)
tree6cfc43be4b56abfe483ce436fc2a113705382376 /components/script_traits/script_msg.rs
parent2677540cd0fe93b741e82e1176b5073a8a92fba6 (diff)
downloadservo-b86965f3948cb830b084a53133ec949af0d11ff7.tar.gz
servo-b86965f3948cb830b084a53133ec949af0d11ff7.zip
Implement synchronous about:blank loading.
Based on initial work by jdm in <https://github.com/servo/servo/pull/8600>.
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r--components/script_traits/script_msg.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs
index d4a9fc7442b..7ef20af9fbc 100644
--- a/components/script_traits/script_msg.rs
+++ b/components/script_traits/script_msg.rs
@@ -6,6 +6,8 @@ use AnimationState;
use CompositorEvent;
use DocumentState;
use IFrameLoadInfo;
+use IFrameLoadInfoWithData;
+use LayoutControlMsg;
use LoadData;
use MozBrowserEvent;
use WorkerGlobalScopeInit;
@@ -105,7 +107,9 @@ pub enum ScriptMsg {
/// Notifies constellation that an iframe's visibility has been changed.
VisibilityChangeComplete(PipelineId, bool),
/// A load has been requested in an IFrame.
- ScriptLoadedURLInIFrame(IFrameLoadInfo),
+ ScriptLoadedURLInIFrame(IFrameLoadInfoWithData),
+ /// A load of `about:blank` has been completed in an IFrame.
+ ScriptLoadedAboutBlankInIFrame(IFrameLoadInfo, IpcSender<LayoutControlMsg>),
/// Requests that the constellation set the contents of the clipboard
SetClipboardContents(String),
/// Mark a new document as active