aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/lib.rs
diff options
context:
space:
mode:
authorGregory Terzian <gterzian@users.noreply.github.com>2018-12-12 21:16:07 +0800
committerGregory Terzian <gterzian@users.noreply.github.com>2018-12-23 17:39:13 +0800
commiteb82e781a36c055dab4c1cc3772f7a555abd31a6 (patch)
tree235d931a22ef7f24ef0f2372bc5f28687f5b77d2 /components/script_traits/lib.rs
parent483bf245dff23a4bfcb5f698549236aec534ca41 (diff)
downloadservo-eb82e781a36c055dab4c1cc3772f7a555abd31a6.tar.gz
servo-eb82e781a36c055dab4c1cc3772f7a555abd31a6.zip
implement windowproxy "delay-load-event-mode", and partially document "completely-loaded"
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r--components/script_traits/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs
index 4443bee3919..4a0e1efd9b1 100644
--- a/components/script_traits/lib.rs
+++ b/components/script_traits/lib.rs
@@ -248,6 +248,10 @@ pub enum UpdatePipelineIdReason {
/// Messages sent from the constellation or layout to the script thread.
#[derive(Deserialize, Serialize)]
pub enum ConstellationControlMsg {
+ /// Takes the associated window proxy out of "delaying-load-events-mode",
+ /// used if a scheduled navigated was refused by the embedder.
+ /// https://html.spec.whatwg.org/multipage/#delaying-load-events-mode
+ StopDelayingLoadEventsMode(PipelineId),
/// Sends the final response to script thread for fetching after all redirections
/// have been resolved
NavigationResponse(PipelineId, FetchResponseMsg),
@@ -340,6 +344,7 @@ impl fmt::Debug for ConstellationControlMsg {
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
use self::ConstellationControlMsg::*;
let variant = match *self {
+ StopDelayingLoadEventsMode(..) => "StopDelayingLoadsEventMode",
NavigationResponse(..) => "NavigationResponse",
AttachLayout(..) => "AttachLayout",
Resize(..) => "Resize",