diff options
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index dd0f798fcec..714c6857d9c 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -145,6 +145,7 @@ use script_traits::{ScriptToConstellationChan, TimerSchedulerMsg}; use script_traits::{TouchEventType, TouchId, UntrustedNodeAddress, WheelDelta}; use script_traits::{UpdatePipelineIdReason, WebrenderIpcSender, WindowSizeData, WindowSizeType}; use servo_atoms::Atom; +use servo_config::opts; use servo_url::{ImmutableOrigin, MutableOrigin, ServoUrl}; use std::borrow::Cow; use std::cell::Cell; @@ -2908,6 +2909,12 @@ impl ScriptThread { .as_ref() .map(|bhm| bhm.unregister()); + // If we're in multiprocess mode, shut-down the IPC router for this process. + if opts::multiprocess() { + debug!("Exiting IPC router thread in script thread."); + ROUTER.shutdown(); + } + debug!("Exited script thread."); } @@ -3702,7 +3709,7 @@ impl ScriptThread { new_size ); window.set_window_size(new_size); - window.force_reflow(ReflowGoal::Full, ReflowReason::WindowResize); + window.force_reflow(ReflowGoal::Full, ReflowReason::WindowResize, None); // http://dev.w3.org/csswg/cssom-view/#resizing-viewports if size_type == WindowSizeType::Resize { |