diff --git a/ports/servoshell/desktop/embedder.rs b/ports/servoshell/desktop/embedder.rs index 39e33d00d87..d8f9548b39c 100644 --- a/ports/servoshell/desktop/embedder.rs +++ b/ports/servoshell/desktop/embedder.rs @@ -61,8 +61,8 @@ impl EmbedderMethods for EmbedderCallbacks { fn get_protocol_handlers(&self) -> ProtocolRegistry { let mut registry = ProtocolRegistry::default(); registry.register("urlinfo", urlinfo::UrlInfoProtocolHander::default()); - registry.register("servo", servo_handler::ServoProtocolHander::default()); - registry.register("resource", resource::ResourceProtocolHander::default()); + registry.register("servo", servo_handler::ServoProtocolHandler::default()); + registry.register("resource", resource::ResourceProtocolHandler::default()); registry } diff --git a/ports/servoshell/desktop/protocols/resource.rs b/ports/servoshell/desktop/protocols/resource.rs index 3d1721fff6c..3a719193e8e 100644 --- a/ports/servoshell/desktop/protocols/resource.rs +++ b/ports/servoshell/desktop/protocols/resource.rs @@ -23,9 +23,9 @@ use net_traits::ResourceFetchTiming; use tokio::sync::mpsc::unbounded_channel; #[derive(Default)] -pub struct ResourceProtocolHander {} +pub struct ResourceProtocolHandler {} -impl ResourceProtocolHander { +impl ResourceProtocolHandler { pub fn response_for_path( request: &mut Request, done_chan: &mut DoneChannel, @@ -91,7 +91,7 @@ impl ResourceProtocolHander { } } -impl ProtocolHandler for ResourceProtocolHander { +impl ProtocolHandler for ResourceProtocolHandler { fn load( &self, request: &mut Request, diff --git a/ports/servoshell/desktop/protocols/servo.rs b/ports/servoshell/desktop/protocols/servo.rs index f03d7715230..465d71a9e08 100644 --- a/ports/servoshell/desktop/protocols/servo.rs +++ b/ports/servoshell/desktop/protocols/servo.rs @@ -3,7 +3,7 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ //! Loads resources using a mapping from well-known shortcuts to resource: urls. -//! Recognized shorcuts: +//! Recognized shortcuts: //! - servo:newtab use std::future::Future; @@ -14,12 +14,12 @@ use net::protocols::ProtocolHandler; use net_traits::request::Request; use net_traits::response::Response; -use crate::desktop::protocols::resource::ResourceProtocolHander; +use crate::desktop::protocols::resource::ResourceProtocolHandler; #[derive(Default)] -pub struct ServoProtocolHander {} +pub struct ServoProtocolHandler {} -impl ProtocolHandler for ServoProtocolHander { +impl ProtocolHandler for ServoProtocolHandler { fn load( &self, request: &mut Request, @@ -29,7 +29,7 @@ impl ProtocolHandler for ServoProtocolHander { let url = request.current_url(); match url.path() { - "newtab" => ResourceProtocolHander::response_for_path( + "newtab" => ResourceProtocolHandler::response_for_path( request, done_chan, context,