diff --git a/components/compositing/compositor.rs b/components/compositing/compositor.rs index 52c617fb0bd..1614f28b741 100644 --- a/components/compositing/compositor.rs +++ b/components/compositing/compositor.rs @@ -754,10 +754,15 @@ impl IOCompositor { let initial_viewport = self.window_rect.size.to_f32() / dppx; - let msg = ConstellationMsg::WindowSize(WindowSizeData { + let data = WindowSizeData { device_pixel_ratio: dppx, initial_viewport: initial_viewport, - }, size_type); + }; + let top_level_browsing_context_id = match self.root_pipeline { + Some(ref pipeline) => pipeline.top_level_browsing_context_id, + None => return warn!("Window resize without root pipeline."), + }; + let msg = ConstellationMsg::WindowSize(top_level_browsing_context_id, data, size_type); if let Err(e) = self.constellation_chan.send(msg) { warn!("Sending window resize to constellation failed ({}).", e); @@ -866,7 +871,11 @@ impl IOCompositor { } WindowEvent::Reload => { - let msg = ConstellationMsg::Reload; + let top_level_browsing_context_id = match self.root_pipeline { + Some(ref pipeline) => pipeline.top_level_browsing_context_id, + None => return warn!("Window reload without root pipeline."), + }; + let msg = ConstellationMsg::Reload(top_level_browsing_context_id); if let Err(e) = self.constellation_chan.send(msg) { warn!("Sending reload to constellation failed ({}).", e); } @@ -1338,7 +1347,11 @@ impl IOCompositor { windowing::WindowNavigateMsg::Forward => TraversalDirection::Forward(1), windowing::WindowNavigateMsg::Back => TraversalDirection::Back(1), }; - let msg = ConstellationMsg::TraverseHistory(None, direction); + let top_level_browsing_context_id = match self.root_pipeline { + Some(ref pipeline) => pipeline.top_level_browsing_context_id, + None => return warn!("Sending navigation to constellation with no root pipeline."), + }; + let msg = ConstellationMsg::TraverseHistory(top_level_browsing_context_id, direction); if let Err(e) = self.constellation_chan.send(msg) { warn!("Sending navigation to constellation failed ({}).", e); } diff --git a/components/compositing/lib.rs b/components/compositing/lib.rs index 9b3fb8d9cda..e4307ff04cc 100644 --- a/components/compositing/lib.rs +++ b/components/compositing/lib.rs @@ -29,6 +29,7 @@ pub use compositor::IOCompositor; use euclid::size::TypedSize2D; use ipc_channel::ipc::IpcSender; use msg::constellation_msg::PipelineId; +use msg::constellation_msg::TopLevelBrowsingContextId; use script_traits::{ConstellationControlMsg, LayoutControlMsg}; use style_traits::CSSPixel; @@ -48,6 +49,7 @@ pub struct SendableFrameTree { #[derive(Clone)] pub struct CompositionPipeline { pub id: PipelineId, + pub top_level_browsing_context_id: TopLevelBrowsingContextId, pub script_chan: IpcSender, pub layout_chan: IpcSender, } diff --git a/components/constellation/constellation.rs b/components/constellation/constellation.rs index 7567b3d12cd..51d22e1129c 100644 --- a/components/constellation/constellation.rs +++ b/components/constellation/constellation.rs @@ -863,6 +863,13 @@ impl Constellation debug!("constellation got get root pipeline message"); self.handle_get_pipeline(browsing_context_id, resp_chan); } + FromCompositorMsg::GetFocusTopLevelBrowsingContext(resp_chan) => { + debug!("constellation got get focus browsing context message"); + let focus_browsing_context = self.focus_pipeline_id + .and_then(|pipeline_id| self.pipelines.get(&pipeline_id)) + .map(|pipeline| pipeline.top_level_browsing_context_id); + let _ = resp_chan.send(focus_browsing_context); + } FromCompositorMsg::GetPipelineTitle(pipeline_id) => { debug!("constellation got get-pipeline-title message"); self.handle_get_pipeline_title_msg(pipeline_id); @@ -896,13 +903,14 @@ impl Constellation self.handle_init_load(url); } // Handle a forward or back request - FromCompositorMsg::TraverseHistory(pipeline_id, direction) => { + // Handle a forward or back request + FromCompositorMsg::TraverseHistory(top_level_browsing_context_id, direction) => { debug!("constellation got traverse history message from compositor"); - self.handle_traverse_history_msg(pipeline_id, direction); + self.handle_traverse_history_msg(top_level_browsing_context_id, direction); } - FromCompositorMsg::WindowSize(new_size, size_type) => { + FromCompositorMsg::WindowSize(top_level_browsing_context_id, new_size, size_type) => { debug!("constellation got window resize message"); - self.handle_window_size_msg(new_size, size_type); + self.handle_window_size_msg(top_level_browsing_context_id, new_size, size_type); } FromCompositorMsg::TickAnimation(pipeline_id, tick_type) => { self.handle_tick_animation(pipeline_id, tick_type) @@ -911,9 +919,9 @@ impl Constellation debug!("constellation got webdriver command message"); self.handle_webdriver_msg(command); } - FromCompositorMsg::Reload => { + FromCompositorMsg::Reload(top_level_browsing_context_id) => { debug!("constellation got reload message"); - self.handle_reload_msg(); + self.handle_reload_msg(top_level_browsing_context_id); } FromCompositorMsg::LogEntry(top_level_browsing_context_id, thread_name, entry) => { self.handle_log_entry(top_level_browsing_context_id, thread_name, entry); @@ -963,14 +971,14 @@ impl Constellation self.handle_load_complete_msg(pipeline_id) } // Handle a forward or back request - FromScriptMsg::TraverseHistory(pipeline_id, direction) => { + FromScriptMsg::TraverseHistory(top_level_browsing_context_id, direction) => { debug!("constellation got traverse history message from script"); - self.handle_traverse_history_msg(pipeline_id, direction); + self.handle_traverse_history_msg(top_level_browsing_context_id, direction); } // Handle a joint session history length request. - FromScriptMsg::JointSessionHistoryLength(pipeline_id, sender) => { + FromScriptMsg::JointSessionHistoryLength(top_level_browsing_context_id, sender) => { debug!("constellation got joint session history length message from script"); - self.handle_joint_session_history_length(pipeline_id, sender); + self.handle_joint_session_history_length(top_level_browsing_context_id, sender); } // Notification that the new document is ready to become active FromScriptMsg::ActivateDocument(pipeline_id) => { @@ -1392,6 +1400,7 @@ impl Constellation let window_size = self.window_size.initial_viewport; let root_pipeline_id = PipelineId::new(); let root_browsing_context_id = self.root_browsing_context_id; + self.focus_pipeline_id = Some(root_pipeline_id); let load_data = LoadData::new(url.clone(), None, None, None); let sandbox = IFrameSandboxState::IFrameUnsandboxed; self.new_pipeline(root_pipeline_id, @@ -1530,6 +1539,7 @@ impl Constellation Pipeline::new(new_pipeline_id, browsing_context_id, + top_level_browsing_context_id, Some((parent_pipeline_id, frame_type)), script_sender, layout_sender, @@ -1747,14 +1757,9 @@ impl Constellation } fn handle_traverse_history_msg(&mut self, - pipeline_id: Option, - direction: TraversalDirection) { - let top_level_browsing_context_id = pipeline_id - .and_then(|pipeline_id| self.pipelines.get(&pipeline_id)) - .and_then(|pipeline| self.browsing_contexts.get(&pipeline.browsing_context_id)) - .map(|browsing_context| browsing_context.top_level_id) - .unwrap_or(self.root_browsing_context_id); - + top_level_browsing_context_id: TopLevelBrowsingContextId, + direction: TraversalDirection) + { let mut size = 0; let mut table = HashMap::new(); @@ -1784,12 +1789,10 @@ impl Constellation } } - fn handle_joint_session_history_length(&self, pipeline_id: PipelineId, sender: IpcSender) { - let top_level_browsing_context_id = self.pipelines.get(&pipeline_id) - .and_then(|pipeline| self.browsing_contexts.get(&pipeline.browsing_context_id)) - .map(|browsing_context| browsing_context.top_level_id) - .unwrap_or(self.root_browsing_context_id); - + fn handle_joint_session_history_length(&self, + top_level_browsing_context_id: TopLevelBrowsingContextId, + sender: IpcSender) + { // Initialize length at 1 to count for the current active entry let mut length = 1; for browsing_context in self.all_browsing_contexts_iter(top_level_browsing_context_id) { @@ -1827,21 +1830,19 @@ impl Constellation } } - fn handle_reload_msg(&mut self) { - // Send Reload constellation msg to root script channel. - let root_browsing_context_id = BrowsingContextId::from(self.root_browsing_context_id); - let root_pipeline_id = self.browsing_contexts.get(&root_browsing_context_id) - .map(|root_browsing_context| root_browsing_context.pipeline_id); - - if let Some(pipeline_id) = root_pipeline_id { - let msg = ConstellationControlMsg::Reload(pipeline_id); - let result = match self.pipelines.get(&pipeline_id) { - Some(pipeline) => pipeline.event_loop.send(msg), - None => return debug!("Pipeline {:?} got reload event after closure.", pipeline_id), - }; - if let Err(e) = result { - self.handle_send_error(pipeline_id, e); - } + fn handle_reload_msg(&mut self, top_level_browsing_context_id: TopLevelBrowsingContextId) { + let browsing_context_id = BrowsingContextId::from(top_level_browsing_context_id); + let pipeline_id = match self.browsing_contexts.get(&browsing_context_id) { + Some(browsing_context) => browsing_context.pipeline_id, + None => return warn!("Browsing context {} got reload event after closure.", browsing_context_id), + }; + let msg = ConstellationControlMsg::Reload(pipeline_id); + let result = match self.pipelines.get(&pipeline_id) { + None => return warn!("Pipeline {} got reload event after closure.", pipeline_id), + Some(pipeline) => pipeline.event_loop.send(msg), + }; + if let Err(e) = result { + self.handle_send_error(pipeline_id, e); } } @@ -1894,10 +1895,8 @@ impl Constellation } fn handle_get_pipeline(&mut self, - browsing_context_id: Option, + browsing_context_id: BrowsingContextId, resp_chan: IpcSender>) { - let root_browsing_context_id = BrowsingContextId::from(self.root_browsing_context_id); - let browsing_context_id = browsing_context_id.unwrap_or(root_browsing_context_id); let current_pipeline_id = self.browsing_contexts.get(&browsing_context_id) .map(|browsing_context| browsing_context.pipeline_id); let pipeline_id_loaded = self.pending_changes.iter().rev() @@ -2033,17 +2032,22 @@ impl Constellation self.webdriver.resize_channel = Some(reply); self.compositor_proxy.send(ToCompositorMsg::ResizeTo(size)); }, - WebDriverCommandMsg::LoadUrl(pipeline_id, load_data, reply) => { - self.load_url_for_webdriver(pipeline_id, load_data, reply, false); + WebDriverCommandMsg::LoadUrl(top_level_browsing_context_id, load_data, reply) => { + self.load_url_for_webdriver(top_level_browsing_context_id, load_data, reply, false); }, - WebDriverCommandMsg::Refresh(pipeline_id, reply) => { - let load_data = match self.pipelines.get(&pipeline_id) { - Some(pipeline) => LoadData::new(pipeline.url.clone(), None, None, None), - None => return warn!("Pipeline {:?} Refresh after closure.", pipeline_id), + WebDriverCommandMsg::Refresh(top_level_browsing_context_id, reply) => { + let browsing_context_id = BrowsingContextId::from(top_level_browsing_context_id); + let load_data = match self.browsing_contexts.get(&browsing_context_id) { + Some(browsing_context) => browsing_context.load_data.clone(), + None => return warn!("Browsing context {} Refresh after closure.", browsing_context_id), }; - self.load_url_for_webdriver(pipeline_id, load_data, reply, true); + self.load_url_for_webdriver(top_level_browsing_context_id, load_data, reply, true); } - WebDriverCommandMsg::ScriptCommand(pipeline_id, cmd) => { + WebDriverCommandMsg::ScriptCommand(browsing_context_id, cmd) => { + let pipeline_id = match self.browsing_contexts.get(&browsing_context_id) { + Some(browsing_context) => browsing_context.pipeline_id, + None => return warn!("Browsing context {} ScriptCommand after closure.", browsing_context_id), + }; let control_msg = ConstellationControlMsg::WebDriverScriptCommand(pipeline_id, cmd); let result = match self.pipelines.get(&pipeline_id) { Some(pipeline) => pipeline.event_loop.send(control_msg), @@ -2053,10 +2057,14 @@ impl Constellation self.handle_send_error(pipeline_id, e); } }, - WebDriverCommandMsg::SendKeys(pipeline_id, cmd) => { + WebDriverCommandMsg::SendKeys(browsing_context_id, cmd) => { + let pipeline_id = match self.browsing_contexts.get(&browsing_context_id) { + Some(browsing_context) => browsing_context.pipeline_id, + None => return warn!("Browsing context {} SendKeys after closure.", browsing_context_id), + }; let event_loop = match self.pipelines.get(&pipeline_id) { Some(pipeline) => pipeline.event_loop.clone(), - None => return warn!("Pipeline {:?} SendKeys after closure.", pipeline_id), + None => return warn!("Pipeline {} SendKeys after closure.", pipeline_id), }; for (key, mods, state) in cmd { let event = CompositorEvent::KeyEvent(None, key, state, mods); @@ -2066,17 +2074,8 @@ impl Constellation } } }, - WebDriverCommandMsg::TakeScreenshot(pipeline_id, reply) => { - let root_browsing_context_id = BrowsingContextId::from(self.root_browsing_context_id); - let current_pipeline_id = self.browsing_contexts.get(&root_browsing_context_id) - .map(|root_browsing_context| root_browsing_context.pipeline_id); - if Some(pipeline_id) == current_pipeline_id { - self.compositor_proxy.send(ToCompositorMsg::CreatePng(reply)); - } else { - if let Err(e) = reply.send(None) { - warn!("Screenshot reply failed ({})", e); - } - } + WebDriverCommandMsg::TakeScreenshot(_, reply) => { + self.compositor_proxy.send(ToCompositorMsg::CreatePng(reply)); }, } } @@ -2267,13 +2266,18 @@ impl Constellation } fn load_url_for_webdriver(&mut self, - pipeline_id: PipelineId, + top_level_browsing_context_id: TopLevelBrowsingContextId, load_data: LoadData, reply: IpcSender, - replace: bool) { - let new_pipeline_id = self.load_url(pipeline_id, load_data, replace); - if let Some(id) = new_pipeline_id { - self.webdriver.load_channel = Some((id, reply)); + replace: bool) + { + let browsing_context_id = BrowsingContextId::from(top_level_browsing_context_id); + let pipeline_id = match self.browsing_contexts.get(&browsing_context_id) { + Some(browsing_context) => browsing_context.pipeline_id, + None => return warn!("Webdriver load for closed browsing context {}.", browsing_context_id), + }; + if let Some(new_pipeline_id) = self.load_url(pipeline_id, load_data, replace) { + self.webdriver.load_channel = Some((new_pipeline_id, reply)); } } @@ -2369,10 +2373,14 @@ impl Constellation } /// Called when the window is resized. - fn handle_window_size_msg(&mut self, new_size: WindowSizeData, size_type: WindowSizeType) { + fn handle_window_size_msg(&mut self, + top_level_browsing_context_id: TopLevelBrowsingContextId, + new_size: WindowSizeData, + size_type: WindowSizeType) + { debug!("handle_window_size_msg: {:?}", new_size.initial_viewport.to_untyped()); - let browsing_context_id = BrowsingContextId::from(self.root_browsing_context_id); + let browsing_context_id = BrowsingContextId::from(top_level_browsing_context_id); self.resize_browsing_context(new_size, size_type, browsing_context_id); if let Some(resize_channel) = self.webdriver.resize_channel.take() { @@ -2792,9 +2800,9 @@ impl Constellation let top_level_browsing_context_id = self.browsing_contexts.get(&pipeline.browsing_context_id) .map(|browsing_context| browsing_context.top_level_id) .unwrap_or(self.root_browsing_context_id); + let url = pipeline.url.clone(); let can_go_forward = !self.joint_session_future_is_empty(top_level_browsing_context_id); let can_go_back = !self.joint_session_past_is_empty(top_level_browsing_context_id); - let url = pipeline.url.to_string(); let event = MozBrowserEvent::LocationChange(url, can_go_back, can_go_forward); parent.trigger_mozbrowser_event(Some(top_level_browsing_context_id), event); }, diff --git a/components/constellation/pipeline.rs b/components/constellation/pipeline.rs index 85fdc54289b..1fb385d551f 100644 --- a/components/constellation/pipeline.rs +++ b/components/constellation/pipeline.rs @@ -52,6 +52,9 @@ pub struct Pipeline { /// The ID of the browsing context that contains this Pipeline. pub browsing_context_id: BrowsingContextId, + /// The ID of the top-level browsing context that contains this Pipeline. + pub top_level_browsing_context_id: TopLevelBrowsingContextId, + /// The parent pipeline of this one. `None` if this is a root pipeline. /// Note that because of mozbrowser iframes, even top-level pipelines /// may have a parent (in which case the frame type will be @@ -282,6 +285,7 @@ impl Pipeline { Ok(Pipeline::new(state.id, state.browsing_context_id, + state.top_level_browsing_context_id, state.parent_info, script_chan, pipeline_chan, @@ -295,6 +299,7 @@ impl Pipeline { /// spawned. pub fn new(id: PipelineId, browsing_context_id: BrowsingContextId, + top_level_browsing_context_id: TopLevelBrowsingContextId, parent_info: Option<(PipelineId, FrameType)>, event_loop: Rc, layout_chan: IpcSender, @@ -306,6 +311,7 @@ impl Pipeline { let pipeline = Pipeline { id: id, browsing_context_id: browsing_context_id, + top_level_browsing_context_id: top_level_browsing_context_id, parent_info: parent_info, event_loop: event_loop, layout_chan: layout_chan, @@ -372,6 +378,7 @@ impl Pipeline { pub fn to_sendable(&self) -> CompositionPipeline { CompositionPipeline { id: self.id.clone(), + top_level_browsing_context_id: self.top_level_browsing_context_id.clone(), script_chan: self.event_loop.sender(), layout_chan: self.layout_chan.clone(), } diff --git a/components/script/dom/history.rs b/components/script/dom/history.rs index 5488d02d9bf..b9601d2ca1c 100644 --- a/components/script/dom/history.rs +++ b/components/script/dom/history.rs @@ -44,10 +44,9 @@ impl History { if !self.window.Document().is_fully_active() { return Err(Error::Security); } - let global_scope = self.window.upcast::(); - let pipeline = global_scope.pipeline_id(); - let msg = ConstellationMsg::TraverseHistory(Some(pipeline), direction); - let _ = global_scope.constellation_chan().send(msg); + let top_level_browsing_context_id = self.window.window_proxy().top_level_browsing_context_id(); + let msg = ConstellationMsg::TraverseHistory(top_level_browsing_context_id, direction); + let _ = self.window.upcast::().constellation_chan().send(msg); Ok(()) } } @@ -58,13 +57,12 @@ impl HistoryMethods for History { if !self.window.Document().is_fully_active() { return Err(Error::Security); } - let global_scope = self.window.upcast::(); - let pipeline = global_scope.pipeline_id(); + let top_level_browsing_context_id = self.window.window_proxy().top_level_browsing_context_id(); let (sender, recv) = ipc::channel().expect("Failed to create channel to send jsh length."); - let msg = ConstellationMsg::JointSessionHistoryLength(pipeline, sender); - let _ = global_scope.constellation_chan().send(msg); + let msg = ConstellationMsg::JointSessionHistoryLength(top_level_browsing_context_id, sender); + let _ = self.window.upcast::().constellation_chan().send(msg); Ok(recv.recv().unwrap()) - } +} // https://html.spec.whatwg.org/multipage/#dom-history-go fn Go(&self, delta: i32) -> ErrorResult { diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index 00755213c75..3621bf3f4f9 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -498,7 +498,7 @@ unsafe fn build_mozbrowser_event_detail(event: MozBrowserEvent, } MozBrowserEvent::LocationChange(url, can_go_back, can_go_forward) => { BrowserElementLocationChangeEventDetail { - url: Some(DOMString::from(url)), + url: Some(DOMString::from(url.as_str())), canGoBack: Some(can_go_back), canGoForward: Some(can_go_forward), }.to_jsval(cx, rval); @@ -540,18 +540,16 @@ unsafe fn build_mozbrowser_event_detail(event: MozBrowserEvent, pub fn Navigate(iframe: &HTMLIFrameElement, direction: TraversalDirection) -> ErrorResult { if iframe.Mozbrowser() { - if iframe.upcast::().is_in_doc_with_browsing_context() { + if let Some(top_level_browsing_context_id) = iframe.top_level_browsing_context_id() { let window = window_from_node(iframe); - let msg = ConstellationMsg::TraverseHistory(iframe.pipeline_id(), direction); + let msg = ConstellationMsg::TraverseHistory(top_level_browsing_context_id, direction); window.upcast::().constellation_chan().send(msg).unwrap(); + return Ok(()); } - - Ok(()) - } else { - debug!(concat!("this frame is not mozbrowser: mozbrowser attribute missing, or not a top", - "level window, or mozbrowser preference not set (use --pref dom.mozbrowser.enabled)")); - Err(Error::NotSupported) } + debug!(concat!("this frame is not mozbrowser: mozbrowser attribute missing, or not a top", + "level window, or mozbrowser preference not set (use --pref dom.mozbrowser.enabled)")); + Err(Error::NotSupported) } impl HTMLIFrameElementMethods for HTMLIFrameElement { diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index d66baaeda81..405616fedec 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -1280,8 +1280,8 @@ impl ScriptThread { webdriver_handlers::handle_get_rect(&*documents, pipeline_id, node_id, reply), WebDriverScriptCommand::GetElementText(node_id, reply) => webdriver_handlers::handle_get_text(&*documents, pipeline_id, node_id, reply), - WebDriverScriptCommand::GetPipelineId(browsing_context_id, reply) => - webdriver_handlers::handle_get_pipeline_id(&*documents, pipeline_id, browsing_context_id, reply), + WebDriverScriptCommand::GetBrowsingContextId(webdriver_frame_id, reply) => + webdriver_handlers::handle_get_browsing_context_id(&*documents, pipeline_id, webdriver_frame_id, reply), WebDriverScriptCommand::GetUrl(reply) => webdriver_handlers::handle_get_url(&*documents, pipeline_id, reply), WebDriverScriptCommand::IsEnabled(element_id, reply) => diff --git a/components/script/webdriver_handlers.rs b/components/script/webdriver_handlers.rs index 7bc31263c25..1aa2ad05dab 100644 --- a/components/script/webdriver_handlers.rs +++ b/components/script/webdriver_handlers.rs @@ -29,6 +29,7 @@ use hyper_serde::Serde; use ipc_channel::ipc::{self, IpcSender}; use js::jsapi::{HandleValue, JSContext}; use js::jsval::UndefinedValue; +use msg::constellation_msg::BrowsingContextId; use msg::constellation_msg::PipelineId; use net_traits::CookieSource::{HTTP, NonHTTP}; use net_traits::CoreResourceMsg::{GetCookiesDataForUrl, SetCookieForUrl}; @@ -109,23 +110,23 @@ pub fn handle_execute_async_script(documents: &Documents, window.upcast::().evaluate_js_on_global_with_result(&eval, rval.handle_mut()); } -pub fn handle_get_pipeline_id(documents: &Documents, - pipeline: PipelineId, - webdriver_frame_id: WebDriverFrameId, - reply: IpcSender, ()>>) { +pub fn handle_get_browsing_context_id(documents: &Documents, + pipeline: PipelineId, + webdriver_frame_id: WebDriverFrameId, + reply: IpcSender>) { let result = match webdriver_frame_id { WebDriverFrameId::Short(_) => { // This isn't supported yet - Ok(None) + Err(()) }, WebDriverFrameId::Element(x) => { find_node_by_unique_id(documents, pipeline, x) - .and_then(|node| node.downcast::().map(|elem| elem.pipeline_id())) + .and_then(|node| node.downcast::().and_then(|elem| elem.browsing_context_id())) .ok_or(()) }, WebDriverFrameId::Parent => { documents.find_window(pipeline) - .map(|window| window.parent_info().map(|(parent_id, _)| parent_id)) + .and_then(|window| window.window_proxy().parent().map(|parent| parent.browsing_context_id())) .ok_or(()) } }; diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 98e66ab8044..c5e62b6ee81 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -602,7 +602,7 @@ pub enum MozBrowserEvent { /// Sent when the browser `