Skip to content
Permalink
Browse files

Fix gonk port

  • Loading branch information
brson committed May 10, 2015
1 parent d1b0a4b commit bc284691d2cc06a4316cd5361193be3d24d911e6
Showing with 2 additions and 10 deletions.
  1. +1 −0 ports/gonk/Cargo.lock
  2. +1 −10 ports/gonk/src/lib.rs

Some generated files are not rendered by default. Learn more.

@@ -122,17 +122,8 @@ impl Browser {
devtools_chan,
storage_task);

// Send the URL command to the constellation.
let cwd = env::current_dir().unwrap();
let url = match url::Url::parse(&opts.url) {
Ok(url) => url,
Err(url::ParseError::RelativeUrlWithoutBase)
=> url::Url::from_file_path(&*cwd.join(&opts.url)).unwrap(),
Err(_) => panic!("URL parsing failed"),
};

let ConstellationChan(ref chan) = constellation_chan;
chan.send(ConstellationMsg::InitLoadUrl(url)).unwrap();
chan.send(ConstellationMsg::InitLoadUrl(opts.url.clone())).unwrap();

// The compositor coordinates with the client window to create the final
// rendered page and display it somewhere.

0 comments on commit bc28469

Please sign in to comment.
You can’t perform that action at this time.