diff options
author | Gregory Terzian <gterzian@users.noreply.github.com> | 2018-05-26 23:41:34 +0800 |
---|---|---|
committer | Gregory Terzian <gterzian@users.noreply.github.com> | 2018-06-04 15:02:23 +0800 |
commit | 2753e5efabd77b83dd94bf59fe3f01535e8ac10a (patch) | |
tree | dc6b3463570cd1aaba4d71401837d56c6f28c60f /components/script_traits/script_msg.rs | |
parent | f63284efc04b298b010f34f5225a3fa9014bf763 (diff) | |
download | servo-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.rs | 6 |
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) } |