@@ -46,6 +46,7 @@ use script_traits::{LayoutMsg as FromLayoutMsg, ScriptMsg as FromScriptMsg, Scri
4646use script_traits:: { LogEntry , ServiceWorkerMsg , webdriver_msg} ;
4747use script_traits:: { MozBrowserErrorType , MozBrowserEvent , WebDriverCommandMsg , WindowSizeData } ;
4848use script_traits:: { SWManagerMsg , ScopeThings , WindowSizeType } ;
49+ use servo_url:: ServoUrl ;
4950use std:: borrow:: ToOwned ;
5051use std:: collections:: { HashMap , VecDeque } ;
5152use std:: io:: Error as IOError ;
@@ -62,7 +63,6 @@ use style_traits::PagePx;
6263use style_traits:: cursor:: Cursor ;
6364use style_traits:: viewport:: ViewportConstraints ;
6465use timer_scheduler:: TimerScheduler ;
65- use url:: Url ;
6666use util:: opts;
6767use util:: prefs:: PREFS ;
6868use util:: remutex:: ReentrantMutex ;
@@ -1047,15 +1047,15 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
10471047 }
10481048 }
10491049
1050- fn handle_register_serviceworker ( & self , scope_things : ScopeThings , scope : Url ) {
1050+ fn handle_register_serviceworker ( & self , scope_things : ScopeThings , scope : ServoUrl ) {
10511051 if let Some ( ref mgr) = self . swmanager_chan {
10521052 let _ = mgr. send ( ServiceWorkerMsg :: RegisterServiceWorker ( scope_things, scope) ) ;
10531053 } else {
10541054 warn ! ( "sending scope info to service worker manager failed" ) ;
10551055 }
10561056 }
10571057
1058- fn handle_broadcast_storage_event ( & self , pipeline_id : PipelineId , storage : StorageType , url : Url ,
1058+ fn handle_broadcast_storage_event ( & self , pipeline_id : PipelineId , storage : StorageType , url : ServoUrl ,
10591059 key : Option < String > , old_value : Option < String > , new_value : Option < String > ) {
10601060 let origin = url. origin ( ) ;
10611061 for pipeline in self . pipelines . values ( ) {
@@ -1204,7 +1204,7 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
12041204 self . close_pipeline ( pending_pipeline_id, ExitPipelineMode :: Force ) ;
12051205 }
12061206
1207- let failure_url = Url :: parse ( "about:failure" ) . expect ( "infallible" ) ;
1207+ let failure_url = ServoUrl :: parse ( "about:failure" ) . expect ( "infallible" ) ;
12081208
12091209 if let Some ( pipeline_url) = pipeline_url {
12101210 if pipeline_url == failure_url {
@@ -1245,7 +1245,7 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
12451245 }
12461246 }
12471247
1248- fn handle_init_load ( & mut self , url : Url ) {
1248+ fn handle_init_load ( & mut self , url : ServoUrl ) {
12491249 let window_size = self . window_size . visible_viewport ;
12501250 let root_pipeline_id = PipelineId :: new ( ) ;
12511251 let root_frame_id = self . root_frame_id ;
@@ -1331,7 +1331,7 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
13311331 let load_data = load_info. load_data . unwrap_or_else ( || {
13321332 let url = match old_pipeline {
13331333 Some ( old_pipeline) => old_pipeline. url . clone ( ) ,
1334- None => Url :: parse ( "about:blank" ) . expect ( "infallible" ) ,
1334+ None => ServoUrl :: parse ( "about:blank" ) . expect ( "infallible" ) ,
13351335 } ;
13361336
13371337 // TODO - loaddata here should have referrer info (not None, None)
0 commit comments