aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/script_msg.rs
diff options
context:
space:
mode:
authorGregory Terzian <gterzian@users.noreply.github.com>2018-05-26 23:41:34 +0800
committerGregory Terzian <gterzian@users.noreply.github.com>2018-06-04 15:02:23 +0800
commit2753e5efabd77b83dd94bf59fe3f01535e8ac10a (patch)
treedc6b3463570cd1aaba4d71401837d56c6f28c60f /components/script_traits/script_msg.rs
parentf63284efc04b298b010f34f5225a3fa9014bf763 (diff)
downloadservo-2753e5efabd77b83dd94bf59fe3f01535e8ac10a.tar.gz
servo-2753e5efabd77b83dd94bf59fe3f01535e8ac10a.zip
improve spec compliance of window.close
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r--components/script_traits/script_msg.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs
index c9cb879f1c2..4487cb10d5d 100644
--- a/components/script_traits/script_msg.rs
+++ b/components/script_traits/script_msg.rs
@@ -149,6 +149,8 @@ pub enum ScriptMsg {
LogEntry(Option<String>, LogEntry),
/// Discard the document.
DiscardDocument,
+ /// Discard the browsing context.
+ DiscardTopLevelBrowsingContext,
/// Notifies the constellation that this pipeline has exited.
PipelineExited,
/// Send messages from postMessage calls from serviceworker
@@ -162,8 +164,6 @@ pub enum ScriptMsg {
GetScreenSize(IpcSender<(DeviceUintSize)>),
/// Get the available screen size (pixel)
GetScreenAvailSize(IpcSender<(DeviceUintSize)>),
- /// Requests that the compositor shut down.
- Exit,
}
impl fmt::Debug for ScriptMsg {
@@ -200,13 +200,13 @@ impl fmt::Debug for ScriptMsg {
TouchEventProcessed(..) => "TouchEventProcessed",
LogEntry(..) => "LogEntry",
DiscardDocument => "DiscardDocument",
+ DiscardTopLevelBrowsingContext => "DiscardTopLevelBrowsingContext",
PipelineExited => "PipelineExited",
ForwardDOMMessage(..) => "ForwardDOMMessage",
RegisterServiceWorker(..) => "RegisterServiceWorker",
GetClientWindow(..) => "GetClientWindow",
GetScreenSize(..) => "GetScreenSize",
GetScreenAvailSize(..) => "GetScreenAvailSize",
- Exit => "Exit",
};
write!(formatter, "ScriptMsg::{}", variant)
}